浏览代码

Fix basemap gen shader.

/main
Yao Xiaoling 6 年前
当前提交
74ee5ffc
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 11
      com.unity.render-pipelines.high-definition/HDRP/Material/TerrainLit/TerrainLit_Basemap_Gen.shader

11
com.unity.render-pipelines.high-definition/HDRP/Material/TerrainLit/TerrainLit_Basemap_Gen.shader


Shader "Hidden/HDRenderPipeline/TerrainLit_Basemap_Gen"
{
Properties
{
[HideInInspector] _DstBlend("DstBlend", Float) = 0.0
}
SubShader
{
Tags { "SplatCount" = "8" }

v2f vert(appdata_t v)
{
v2f o;
float3 positionWS = TransformObjectToWorld(v.vertex);
o.vertex = TransformWorldToHClip(positionWS);
o.vertex = TransformWorldToHClip(v.vertex);
o.texcoord = v.texcoord;
return o;
}

v2f vert(appdata_t v)
{
v2f o;
float3 positionWS = TransformObjectToWorld(v.vertex);
o.vertex = TransformWorldToHClip(positionWS);
o.vertex = TransformWorldToHClip(v.vertex);
o.texcoord = v.texcoord;
return o;
}

正在加载...
取消
保存