Skip to content

Commit

Permalink
interior mapping emissive
Browse files Browse the repository at this point in the history
  • Loading branch information
turanszkij committed Jan 26, 2025
1 parent 4c53158 commit 2e51d61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions WickedEngine/shaders/objectHF.hlsli
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,7 @@ float4 main(PixelInput input, in bool is_frontface : SV_IsFrontFace) : SV_Target
#endif // UNLIT

#ifdef INTERIORMAPPING
surface.baseColor.rgb += surface.emissiveColor;
color = surface.baseColor * InteriorMapping(surface.P, surface.N, surface.V, material, meshinstance);
#endif // INTERIORMAPPING

Expand Down
1 change: 1 addition & 0 deletions WickedEngine/shaders/visibility_surfaceCS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void main(uint Gid : SV_GroupID, uint groupIndex : SV_GroupIndex)
}

#ifdef INTERIORMAPPING
surface.baseColor.rgb += surface.emissiveColor;
surface.baseColor *= InteriorMapping(surface.P, surface.N, surface.V, surface.material, surface.inst);
#endif // INTERIORMAPPING

Expand Down

0 comments on commit 2e51d61

Please sign in to comment.