Skip to content

Commit

Permalink
fixed HLMS shaders for GLSL when we have no UV coords
Browse files Browse the repository at this point in the history
  • Loading branch information
dyunchik authored and eugenegff committed Nov 27, 2024
1 parent 3ff1183 commit 84c07a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Samples/Media/Hlms/Pbs/GLSL/PixelShader_ps.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ in vec4 gl_FragCoord;

@insertpiece( PccManualProbeDecl )

@property( !hlms_shadowcaster || !hlms_shadow_uses_depth_texture || alpha_test || hlms_alpha_hash || exponential_shadow_maps )
@property( !hlms_shadowcaster || !hlms_shadow_uses_depth_texture || ( ( alpha_test || hlms_alpha_hash ) && hlms_uv_count ) || exponential_shadow_maps || hlms_shadowcaster_point )
vulkan_layout( location = 0 ) in block
{
@insertpiece( VStoPS_block )
Expand Down
2 changes: 1 addition & 1 deletion Samples/Media/Hlms/Pbs/GLSL/VertexShader_vs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ layout(std140) uniform;

@insertpiece( custom_vs_attributes )

@property( !hlms_shadowcaster || !hlms_shadow_uses_depth_texture || alpha_test || hlms_alpha_hash || exponential_shadow_maps )
@property( !hlms_shadowcaster || !hlms_shadow_uses_depth_texture || ( ( alpha_test || hlms_alpha_hash ) && hlms_uv_count ) || exponential_shadow_maps || hlms_shadowcaster_point )
vulkan_layout( location = 0 ) out block
{
@insertpiece( VStoPS_block )
Expand Down
2 changes: 1 addition & 1 deletion Samples/Media/Hlms/Unlit/GLSL/PixelShader_ps.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ layout(location = FRAG_COLOR, index = 0) out midf outColour;
// START UNIFORM DECLARATION
@insertpiece( custom_ps_uniformDeclaration )
// END UNIFORM DECLARATION
@property( !hlms_shadowcaster || !hlms_shadow_uses_depth_texture || alpha_test || hlms_alpha_hash || exponential_shadow_maps )
@property( !hlms_shadowcaster || !hlms_shadow_uses_depth_texture || ( ( alpha_test || hlms_alpha_hash ) && hlms_uv_count ) || exponential_shadow_maps || hlms_shadowcaster_point )
vulkan_layout( location = 0 ) in block
{
@insertpiece( VStoPS_block )
Expand Down
2 changes: 1 addition & 1 deletion Samples/Media/Hlms/Unlit/GLSL/VertexShader_vs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ layout(std140) uniform;

@insertpiece( custom_vs_attributes )

@property( !hlms_shadowcaster || !hlms_shadow_uses_depth_texture || alpha_test || hlms_alpha_hash || exponential_shadow_maps )
@property( !hlms_shadowcaster || !hlms_shadow_uses_depth_texture || ( ( alpha_test || hlms_alpha_hash ) && hlms_uv_count ) || exponential_shadow_maps || hlms_shadowcaster_point )
vulkan_layout( location = 0 ) out block
{
@insertpiece( VStoPS_block )
Expand Down

0 comments on commit 84c07a0

Please sign in to comment.