Sebastien Lagarde
6 年前
当前提交
413dd3f2
共有 5 个文件被更改,包括 30 次插入 和 63 次删除
-
2com.unity.render-pipelines.high-definition/HDRP/Material/Decal/Decal.cs
-
35com.unity.render-pipelines.high-definition/HDRP/Material/Decal/Decal.cs.hlsl
-
19com.unity.render-pipelines.high-definition/HDRP/Material/Decal/Decal.hlsl
-
19com.unity.render-pipelines.high-definition/HDRP/Material/Decal/ShaderVariablesDecal.hlsl
-
18com.unity.render-pipelines.high-definition/HDRP/ShaderVariables.hlsl
|
|||
#ifdef SHADER_VARIABLES_INCLUDE_CB |
|||
uint _EnableDecals; |
|||
float2 _DecalAtlasResolution; |
|||
uint _DecalCount; |
|||
|
|||
#include "HDRP/Material/Decal//Decal.cs.hlsl" |
|||
|
|||
StructuredBuffer<DecalData> _DecalDatas; |
|||
|
|||
TEXTURE2D_ARRAY(_DecalAtlas); |
|||
SAMPLER(sampler_DecalAtlas); |
|||
|
|||
TEXTURE2D(_DecalAtlas2D); |
|||
SAMPLER(_trilinear_clamp_sampler_DecalAtlas2D); |
|||
|
|||
RW_TEXTURE2D(float, _DecalHTile); // DXGI_FORMAT_R8_UINT is not supported by Unity |
|||
TEXTURE2D(_DecalHTileTexture); |
|||
|
|||
UNITY_INSTANCING_BUFFER_START(Decal) |
|||
UNITY_DEFINE_INSTANCED_PROP(float4x4, _NormalToWorld) |
|||
UNITY_INSTANCING_BUFFER_END(matrix) |
|||
|
|||
#endif |
撰写
预览
正在加载...
取消
保存
Reference in new issue