Browse Source

added the additional colorbuffer entry to the probe projection shader so we get output. TODO: leverage the new CreateSurface methodologies to match with the skylight

Azaezel 7 years ago
parent
commit
b8fb90ab94

+ 4 - 3
Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeP.hlsl

@@ -15,9 +15,10 @@ struct ConvexConnectP
 
 TORQUE_UNIFORM_SAMPLER2D(deferredBuffer, 0);
 TORQUE_UNIFORM_SAMPLER2D(matInfoBuffer, 1);
-TORQUE_UNIFORM_SAMPLERCUBE(cubeMap, 2);
-TORQUE_UNIFORM_SAMPLERCUBE(irradianceCubemap, 3);
-TORQUE_UNIFORM_SAMPLER2D(BRDFTexture, 4);
+TORQUE_UNIFORM_SAMPLER2D(colorBuffer, 2);
+TORQUE_UNIFORM_SAMPLERCUBE(cubeMap, 3);
+TORQUE_UNIFORM_SAMPLERCUBE(irradianceCubemap, 4);
+TORQUE_UNIFORM_SAMPLER2D(BRDFTexture, 5);
 uniform float cubeMips;
 
 uniform float4 rtParams0;