Unity build-in shader 阅读-------HLSLSupporting.cginc
2017-09-18 19:22
399 查看
Texture2D sampler2D https://docs.unity3d.com/Manual/SL-SamplerStates.html
tex.SampleCmpLevelZero (sampler##tex,(coord).xy,(coord).z)
HLSLSupport.cginc 261
#define UNITY_SAMPLE_SHADOW(tex,coord) tex.SampleCmpLevelZero (sampler##tex,(coord).xy,(coord).z)
#define UNITY_SAMPLE_SHADOW_PROJ(tex,coord) tex.SampleCmpLevelZero (sampler##tex,(coord).xy/(coord).w,(coord).z/(coord).w)
sampler2DShadow
shadow2D
shadow2Dproj
sampler2D_float
tex2D
tex2Dproj
tex2Dlod
tex2Dbias
sampler2DArray
tex2DArray
texCUBElod
samplers & textures 在DX11是分开使用,
SamplerState
SGX interpolators
tex.SampleCmpLevelZero (sampler##tex,(coord).xy,(coord).z)
HLSLSupport.cginc 261
#define UNITY_SAMPLE_SHADOW(tex,coord) tex.SampleCmpLevelZero (sampler##tex,(coord).xy,(coord).z)
#define UNITY_SAMPLE_SHADOW_PROJ(tex,coord) tex.SampleCmpLevelZero (sampler##tex,(coord).xy/(coord).w,(coord).z/(coord).w)
sampler2DShadow
shadow2D
shadow2Dproj
sampler2D_float
tex2D
tex2Dproj
tex2Dlod
tex2Dbias
sampler2DArray
tex2DArray
texCUBElod
samplers & textures 在DX11是分开使用,
SamplerState
SGX interpolators
相关文章推荐
- unityCG.cginc
- UnityCG.cginc
- Surface Shaders 内置灯光模型(Build in lighting models)Lighting.cginc 和如何自定义灯光类型
- Unity Shader 学习笔记(2)Shader、ShaderLab、Cg/HLSL/GLSL
- 窥探Unity5渲染内部之解析UnityShaderVariables.cginc
- UnityStandardCore.cginc
- 窥探Unity5渲染内部之解析UnityShaderVariables.cginc
- UnityStandardCore.cginc
- UnityCG.iginc
- 窥探Unity5渲染内部之解析UnityShaderVariables.cginc
- Lambert漫反射.BLinnPhong及Phong模型 Unity自带的在Lighting.cginc里
- Unity Assets目录下的特殊文件夹名称(作用和是否会被打包到build中)
- unity-----------------------使用BuildAssetBundle打包
- Unity 3D 5.3.5f1 不支持SDK 的build-tools 24
- 着色语言(Shader Language),以及HLSL VS GLSL VS CG
- 阅读DVWA系统代码之config.inc.php
- Unity 解决 An asset is marked with HideFlags.DontSave but is included in the build 问题。
- 解读Unity中的CG编写Shader系列十 (光滑的镜面反射(冯氏着色))
- Visual Studio 2008/2010的一个GLSL, HLSL, Cg语法加亮插件-NShader
- 概要:Unity Cg 编程(关于顶点与片段着色器)