Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ public static class Uniforms
public static RenderStateCollection SceneSelection = new RenderStateCollection
{
{ RenderState.Cull(Cull.Off) },
{ RenderState.ColorMask("ColorMask 0") },
};

public static RenderStateCollection DepthOnly = new RenderStateCollection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -911,10 +911,10 @@ void GetSurfaceDataDebug(uint paramId, SurfaceData surfaceData, inout float3 res
}
case DEBUGVIEW_STACKLIT_SURFACEDATA_SPECULAR_COLOR:
{
if (!HasFlag(surfaceData.materialFeatures, DEBUGVIEW_STACKLIT_SURFACEDATA_SPECULAR_COLOR))
if (!HasFlag(surfaceData.materialFeatures, MATERIALFEATUREFLAGS_STACK_LIT_SPECULAR_COLOR))
{
// Derive the specular/fresnel0 term from the metallic parameter
result = ComputeFresnel0(surfaceData.baseColor, surfaceData.metallic.x, DEFAULT_SPECULAR_VALUE);
result = ComputeFresnel0(surfaceData.baseColor, surfaceData.metallic.x, IorToFresnel0(surfaceData.dielectricIor));
}
break;
}
Expand Down