浏览代码

must return all 4 components for RGBm

must return all 4 components for RGBm
/Branch_Batching2
mmikk 8 年前
当前提交
2d627a06
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 5
      Assets/ScriptableRenderPipeline/common/CubeToSpherical.shader

5
Assets/ScriptableRenderPipeline/common/CubeToSpherical.shader


uint2 pixCoord = ((uint2) i.vertex.xy);
half3 dir = SphericalTexCoordinateToDirection(i.texcoord.xy);
half3 res = UNITY_SAMPLE_TEXCUBE_LOD(_srcCubeTexture, dir, (float) _cubeMipLvl).xyz;
return half4(res,1.0);
return (half4) UNITY_SAMPLE_TEXCUBE_LOD(_srcCubeTexture, dir, (float) _cubeMipLvl);
}
ENDCG

正在加载...
取消
保存