- Home /
Question by
Poppel · Mar 18, 2014 at 04:50 PM ·
shaderdocumentationdatatype
cginc definitions vs Docs
In "Lighting.cginc" the "SurfaceOutput" struct (its elements) is defined using "fixed" datatype, but the Unity documentation talks about "half" datatype. According to the docs, "half" is 16bit, "fixed" is 11bit. What is correct? I want to prevent type conversions.
Comment
Your answer

Follow this Question
Related Questions
Distance from pixel to camera in shader 0 Answers
Literals in ShaderLab Fixed-Function Shaders 0 Answers
Shader fuctions documentation 1 Answer
Rebuilding Library because the asset database could not be found! 0 Answers
Shader from Unity documentation not work while see only one object on screen 1 Answer