HTML/JavaScript小工具

HTML/JavaScript小工具

2016年7月18日 星期一

ShaderLab map to Cg/HLSL variable types

Property types in ShaderLab map to Cg/HLSL variable types this way:
  • Color and Vector properties map to float4half4 or fixed4 variables.
  • Range and Float properties map to floathalf or fixed variables.
  • Texture properties map to sampler2D variables for regular (2D) textures; Cubemaps map to samplerCUBE; and 3D textures map to sampler3D.
https://docs.unity3d.com/Manual/SL-SurfaceShaders.html

Tags
http://docs.unity3d.com/462/Documentation/Manual/SL-SubshaderTags.html
光照 模型 之後再談brdf 

沒有留言:

張貼留言