Jump to content

s_light_shadow_iradius has different type across shaders


photo

Recommended Posts

For Intel graphics card I have observed that one of our shader is not getting compiled, and throws error:

 

Uniform "s_light_shadow_iradius" has different type across different shaders.

 

Its been observed that data\core\shaders\default\common\common_base.h is having it as half4 and float4 both.

 

Which should be the appropriate type here?

Link to comment

  1. Graphics API : OpenGL

GPU Driver version:

  • Intel® HD Graphics 4400, driver 10.18.14.4432

Intel® HD Graphics 5000, driver 20.19.15.4331

Intel® HD Graphics family, driver 20.19.15.4483

Intel® HD Graphics 520, driver 20.19.15.453

SDK version : 2.3.1

I will try to create a test sample, but till then do you see any potential issue if I use float4 at both places because that solves the issue for now and we are nearing the release.

 

Link to comment

Yes for us it worked when we changed s_light_shadow_iradius to float in common_base.h.

 

It was we basically required to maintain the type with shaders\common\parameters.h

Link to comment
×
×
  • Create New...