浏览代码

Fixed alpha write.

/projects-TheLastStand
John Parsaie 7 年前
当前提交
dee52ebc
共有 3 个文件被更改,包括 2 次插入10 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/Hair/Lighting.hlsl
  2. 2
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/Hair/LightweightPassLit.hlsl
  3. 8
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/Foliage.meta

2
ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/Hair/Lighting.hlsl


float mtrt = M(radians(BETA_TRT), ThetaH - radians(ALPHA_TRT));
float3 ntrt = NTRT(CosPhi, CosHalfPhi, CosThetaD, brdfData.diffuse);
return brdfData.diffuse + (((mr * nr * 1) + (mtt * ntt * 1) + (mtrt * ntrt * 1)) / (CosThetaD * CosThetaD));
return brdfData.diffuse + (1.5 * ((mr * nr * 1) + (mtt * ntt * 1) + (mtrt * ntrt * 5)) / (CosThetaD * CosThetaD));
}
half3 HairGlobalIllumination(BRDFData brdfData, half3 bakedGI, half occlusion, half3 normalWS, half3 viewDirectionWS,

2
ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/Hair/LightweightPassLit.hlsl


half4 color = LightweightFragmentPBR(inputData, surfaceData.albedo, surfaceData.metallic, surfaceData.specular, surfaceData.smoothness, surfaceData.occlusion, surfaceData.emission, surfaceData.alpha, -IN.binormal);
ApplyFog(color.rgb, inputData.fogCoord);
return half4(color.rgb, 1);
return color;
}
// Used for Standard shader

8
ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/Foliage.meta


fileFormatVersion: 2
guid: 967a9e9c7bcf0994891946c26e958db9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存