|
@@ -147,12 +147,6 @@ float4 main( ConvexConnectP IN ) : SV_TARGET
|
|
Surface surface = createSurface( normDepth, TORQUE_SAMPLER2D_MAKEARG(colorBuffer),TORQUE_SAMPLER2D_MAKEARG(matInfoBuffer),
|
|
Surface surface = createSurface( normDepth, TORQUE_SAMPLER2D_MAKEARG(colorBuffer),TORQUE_SAMPLER2D_MAKEARG(matInfoBuffer),
|
|
uvScene, eyePosWorld, wsEyeRay, cameraToWorld);
|
|
uvScene, eyePosWorld, wsEyeRay, cameraToWorld);
|
|
|
|
|
|
- //early out if emissive
|
|
|
|
- if (getFlag(surface.matFlag, 0))
|
|
|
|
- {
|
|
|
|
- return float4(0, 0, 0, 0);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
float3 L = lightPosition - surface.P;
|
|
float3 L = lightPosition - surface.P;
|
|
float dist = length(L);
|
|
float dist = length(L);
|
|
float3 lighting = 0.0.xxx;
|
|
float3 lighting = 0.0.xxx;
|