Remy
7 年前
当前提交
8bfdd505
共有 5 个文件被更改,包括 130 次插入 和 33 次删除
-
3ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.shader
-
34ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/SurfaceLitData.hlsl
-
33ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/SurfaceLitDataIDX.hlsl
-
84ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/SurfaceLitInclude.hlsl
-
9ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/SurfaceLitInclude.hlsl.meta
|
|||
#include "HDRP/Material/Lit/Lit.cs.hlsl" |
|||
|
|||
// Generated from UnityEngine.Experimental.Rendering.HDPipeline.Lit+SurfaceData |
|||
// PackingRules = Exact |
|||
/* |
|||
struct SurfaceData |
|||
{ |
|||
uint materialFeatures; |
|||
float3 baseColor; |
|||
float specularOcclusion; |
|||
float3 normalWS; |
|||
float perceptualSmoothness; |
|||
float ambientOcclusion; |
|||
float metallic; |
|||
float coatMask; |
|||
float3 specularColor; |
|||
uint diffusionProfile; |
|||
float subsurfaceMask; |
|||
float thickness; |
|||
float3 tangentWS; |
|||
float anisotropy; |
|||
float iridescenceThickness; |
|||
float iridescenceMask; |
|||
float ior; |
|||
float3 transmittanceColor; |
|||
float atDistance; |
|||
float transmittanceMask; |
|||
}; |
|||
*/ |
|||
|
|||
SurfaceData GetSurfaceLitData() |
|||
{ |
|||
SurfaceData s; |
|||
|
|||
ZERO_INITIALIZE(SurfaceData, s); |
|||
|
|||
//s.materialFeatures = MATERIALFEATUREFLAGS_LIT_STANDARD; |
|||
s.baseColor = float3(1, 0, 0); |
|||
s.specularOcclusion = 0; |
|||
s.normalWS = float3(0, 0, 1); |
|||
s.perceptualSmoothness = 0.5; |
|||
s.ambientOcclusion = 0; |
|||
s.metallic = 0; |
|||
s.coatMask = 0; |
|||
s.specularColor = float3(0, 0, 0); |
|||
s.diffusionProfile = 0; |
|||
s.subsurfaceMask = 0; |
|||
s.thickness = 0; |
|||
s.tangentWS = float3(1, 0, 0); |
|||
s.anisotropy = 0; |
|||
s.iridescenceThickness = 0; |
|||
s.iridescenceMask = 0; |
|||
s.ior = 1; |
|||
s.transmittanceColor = float3(0, 0, 0); |
|||
s.atDistance = 0; |
|||
s.transmittanceMask = 0; |
|||
|
|||
return s; |
|||
} |
|||
|
|||
void ModSurfaceLitData(inout SurfaceData s) |
|||
{ |
|||
//s.materialFeatures = MATERIALFEATUREFLAGS_LIT_STANDARD; |
|||
s.baseColor = float3(1, 0, 0); |
|||
|
|||
//s.specularOcclusion = 0; |
|||
//s.normalWS = float3(0, 0, 1); |
|||
s.perceptualSmoothness = 0.5; |
|||
//s.ambientOcclusion = 0; |
|||
//s.metallic = 0; |
|||
//s.coatMask = 0; |
|||
//s.specularColor = float3(0, 0, 0); |
|||
//s.diffusionProfile = 0; |
|||
//s.subsurfaceMask = 0; |
|||
//s.thickness = 0; |
|||
//s.tangentWS = float3(1, 0, 0); |
|||
//s.anisotropy = 0; |
|||
//s.iridescenceThickness = 0; |
|||
//s.iridescenceMask = 0; |
|||
//s.ior = 1; |
|||
//s.transmittanceColor = float3(0, 0, 0); |
|||
//s.atDistance = 0; |
|||
//s.transmittanceMask = 0; |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: b4af743d383efc441a501cffd13c71bd |
|||
ShaderImporter: |
|||
externalObjects: {} |
|||
defaultTextures: [] |
|||
nonModifiableTextures: [] |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue