Skip to content
Open
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 @@ -511,9 +511,7 @@ void Frag(PackedVaryingsToPS packedInput,
outColor = float4(finalColor, 1 * ApplyChannelAlpha(channelAlpha));

#elif _IS_TRANSCLIPPING_ON
float Set_Opacity = SATURATE_IF_SDR((inverseClipping + _Tweak_transparency));

outColor = float4(finalColor, Set_Opacity * ApplyChannelAlpha(channelAlpha));
outColor = float4(finalColor, saturate((inverseClipping + _Tweak_transparency) * ApplyChannelAlpha(channelAlpha)));

#endif

Expand All @@ -530,9 +528,7 @@ void Frag(PackedVaryingsToPS packedInput,
outColor = float4(finalColor, 1 * ApplyChannelAlpha(channelAlpha));

#elif _IS_CLIPPING_TRANSMODE
//DoubleShadeWithFeather_TransClipping
float Set_Opacity = SATURATE_IF_SDR((inverseClipping + _Tweak_transparency));
outColor = float4(finalColor, Set_Opacity * ApplyChannelAlpha(channelAlpha));
outColor = float4(finalColor, saturate((inverseClipping + _Tweak_transparency) * ApplyChannelAlpha(channelAlpha)));
#endif
#endif //#if defined(_SHADINGGRADEMAP)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,7 @@ void frag(VertexOutput i, out float4 finalRGBA : SV_Target0
finalRGBA = fixed4(finalColor, 1);

#elif _IS_CLIPPING_TRANSMODE
//DoubleShadeWithFeather_TransClipping
float Set_Opacity = SATURATE_IF_SDR((_Inverse_Clipping_var + _Tweak_transparency));
finalRGBA = fixed4(finalColor, Set_Opacity);
finalRGBA = fixed4(finalColor, saturate(_Inverse_Clipping_var + _Tweak_transparency));

#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,7 @@ void frag(VertexOutput i, out float4 finalRGBA : SV_Target0
finalRGBA = fixed4(finalColor, 1);

#elif _IS_TRANSCLIPPING_ON
float Set_Opacity = SATURATE_IF_SDR((_Inverse_Clipping_var + _Tweak_transparency));

finalRGBA = fixed4(finalColor, Set_Opacity);

finalRGBA = fixed4(finalColor, saturate(_Inverse_Clipping_var + _Tweak_transparency));
#endif

finalRGBA.rgb = MixFog(finalRGBA.rgb, inputData.fogCoord);
Expand Down