본문 바로가기
Shader

InputData

by 대마왕J 2021. 4. 13.

input.hlsl에 정의되어 있음.

 

struct InputData

{

    float3  positionWS;

    half3   normalWS;

    half3   viewDirectionWS;

    float4  shadowCoord;

    half    fogCoord;

    half3   vertexLighting;

    half3   bakedGI;

    float2  normalizedScreenSpaceUV;

    half4   shadowMask;

};

 

 

 

SurfaceData.hlsl 

 

struct SurfaceData

{

    half3 albedo;

    half3 specular;

    half  metallic;

    half  smoothness;

    half3 normalTS;

    half3 emission;

    half  occlusion;

    half  alpha;

    half  clearCoatMask;

    half  clearCoatSmoothness;

};

 

반응형

댓글