MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Shader Warning for Custom/Unlit_glass_button

Open StephenHodgson opened this issue 10 years ago • 6 comments

Shader warning in 'Custom/Unlit_glass_button': Output value 'vert' is not completely initialized at line 62 (on d3d11)

Compiling Vertex program
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING SHADER_API_DESKTOP UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA

StephenHodgson avatar Dec 02 '16 13:12 StephenHodgson

@dbastienMS is this something you might some time to look into?

NeerajW avatar Dec 02 '16 23:12 NeerajW

This is also a shader specific to a test scene and in the Tests/Shaders folder. Is it needed to show off the actual test scene functionality? Is it something we'd want to move to the HoloToolkit namespace and ship? It seems unnecessary to me to add textures, materials, shaders, etc. just for test scenes, but I'm curious what others think.

keveleigh avatar Dec 02 '16 23:12 keveleigh

Looks like the w component of uv isn't being written in the vertex shader.
UNITY_INITIALIZE_OUTPUT(v2f, o); at the top of the vertex shader will fix it, or just setting w to 0.

Shader also doesn't support stereo instancing.

dbastienMS avatar Dec 07 '16 16:12 dbastienMS

And yeah I agree it seems unnecessary - it's a maintenance cost. Also doesn't look like it respects the near plane fade.

dbastienMS avatar Dec 07 '16 16:12 dbastienMS

I think good examples of shaders is needed for those who are learning, but they should be kept strictly in the tests/examples folders.

StephenHodgson avatar Dec 07 '16 16:12 StephenHodgson

Closing this issue in favor of https://github.com/Microsoft/HoloToolkit-Unity/issues/515.

That issue should address this one by making existing materials use standard HTK shaders.

StephenHodgson avatar Feb 24 '17 18:02 StephenHodgson