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 

黃金比例

https://zh.wikipedia.org/wiki/%E9%BB%84%E9%87%91%E5%88%86%E5%89%B2%E7%8E%87

黃金比例的準確值為,所以是無理數,而大約值則為(小數點後20位,OEISA001622):

2016年7月4日 星期一