From 36c1fb8c9054dede4e880bfa2d76ac84d6f45366 Mon Sep 17 00:00:00 2001 From: Colin Cornaby Date: Sat, 10 Aug 2024 20:41:19 -0700 Subject: [PATCH] Aligning per pixel lighting shader with code style --- .../pfMetalPipeline/ShaderSrc/FixedPipelineShaders.metal | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfMetalPipeline/ShaderSrc/FixedPipelineShaders.metal b/Sources/Plasma/FeatureLib/pfMetalPipeline/ShaderSrc/FixedPipelineShaders.metal index 6e43322a83..dfe8316e1c 100644 --- a/Sources/Plasma/FeatureLib/pfMetalPipeline/ShaderSrc/FixedPipelineShaders.metal +++ b/Sources/Plasma/FeatureLib/pfMetalPipeline/ShaderSrc/FixedPipelineShaders.metal @@ -251,15 +251,11 @@ vertex ColorInOut pipelineVertexShader(Vertex in [[stage_in]], position = (in.weight1 * position) + ((1.f - in.weight1) * position2); } - if (perPixelLighting) - { + if (perPixelLighting) { // send the world pos on to the pixel shader for lighting out.worldPos = position; out.normal = Ndirection; - } - - if (perPixelLighting) - { + out.vtxColor = inColor; } else { out.vtxColor = calcLitMaterialColor(lights, inColor, materialLighting, position, Ndirection);