|
|
|
|
|
|
int shadowIndex; |
|
|
|
int IESIndex; |
|
|
|
int cookieIndex; |
|
|
|
int lightType; |
|
|
|
bool twoSided; |
|
|
|
int lightType; |
|
|
|
float unused; |
|
|
|
}; |
|
|
|
|
|
|
|
// Generated from UnityEngine.Experimental.Rendering.HDPipeline.DirectionalLightData |
|
|
|
|
|
|
// |
|
|
|
float3 GetPositionWS(LightData value) |
|
|
|
{ |
|
|
|
return value.positionWS; |
|
|
|
return value.positionWS; |
|
|
|
return value.invSqrAttenuationRadius; |
|
|
|
return value.invSqrAttenuationRadius; |
|
|
|
return value.color; |
|
|
|
return value.color; |
|
|
|
return value.angleScale; |
|
|
|
return value.angleScale; |
|
|
|
return value.forward; |
|
|
|
return value.forward; |
|
|
|
return value.angleOffset; |
|
|
|
return value.angleOffset; |
|
|
|
return value.up; |
|
|
|
return value.up; |
|
|
|
return value.diffuseScale; |
|
|
|
return value.diffuseScale; |
|
|
|
return value.right; |
|
|
|
return value.right; |
|
|
|
return value.specularScale; |
|
|
|
return value.specularScale; |
|
|
|
return value.shadowDimmer; |
|
|
|
return value.shadowDimmer; |
|
|
|
return value.shadowIndex; |
|
|
|
return value.shadowIndex; |
|
|
|
return value.IESIndex; |
|
|
|
return value.IESIndex; |
|
|
|
return value.cookieIndex; |
|
|
|
return value.cookieIndex; |
|
|
|
int GetLightType(LightData value) |
|
|
|
float2 GetSize(LightData value) |
|
|
|
return value.lightType; |
|
|
|
return value.size; |
|
|
|
float2 GetSize(LightData value) |
|
|
|
int GetLightType(LightData value) |
|
|
|
return value.size; |
|
|
|
return value.lightType; |
|
|
|
bool GetTwoSided(LightData value) |
|
|
|
float GetUnused(LightData value) |
|
|
|
return value.twoSided; |
|
|
|
return value.unused; |
|
|
|
} |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
{ |
|
|
|
return value.forward; |
|
|
|
return value.forward; |
|
|
|
return value.diffuseScale; |
|
|
|
return value.diffuseScale; |
|
|
|
return value.up; |
|
|
|
return value.up; |
|
|
|
return value.invScaleY; |
|
|
|
return value.invScaleY; |
|
|
|
return value.right; |
|
|
|
return value.right; |
|
|
|
return value.invScaleX; |
|
|
|
return value.invScaleX; |
|
|
|
return value.positionWS; |
|
|
|
return value.positionWS; |
|
|
|
return value.tileCookie; |
|
|
|
return value.tileCookie; |
|
|
|
return value.color; |
|
|
|
return value.color; |
|
|
|
return value.specularScale; |
|
|
|
return value.specularScale; |
|
|
|
return value.cosAngle; |
|
|
|
return value.cosAngle; |
|
|
|
return value.sinAngle; |
|
|
|
return value.sinAngle; |
|
|
|
return value.shadowIndex; |
|
|
|
return value.shadowIndex; |
|
|
|
return value.cookieIndex; |
|
|
|
return value.cookieIndex; |
|
|
|
} |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
{ |
|
|
|
return value.worldToShadow; |
|
|
|
return value.worldToShadow; |
|
|
|
return value.bias; |
|
|
|
return value.bias; |
|
|
|
return value.quality; |
|
|
|
return value.quality; |
|
|
|
return value.unused; |
|
|
|
return value.unused; |
|
|
|
return value.unused2; |
|
|
|
return value.unused2; |
|
|
|
return value.invResolution; |
|
|
|
return value.invResolution; |
|
|
|
} |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
{ |
|
|
|
return value.positionWS; |
|
|
|
return value.positionWS; |
|
|
|
return value.envShapeType; |
|
|
|
return value.envShapeType; |
|
|
|
return value.forward; |
|
|
|
return value.forward; |
|
|
|
return value.envIndex; |
|
|
|
return value.envIndex; |
|
|
|
return value.up; |
|
|
|
return value.up; |
|
|
|
return value.blendDistance; |
|
|
|
return value.blendDistance; |
|
|
|
return value.right; |
|
|
|
return value.right; |
|
|
|
return value.unused0; |
|
|
|
return value.unused0; |
|
|
|
return value.innerDistance; |
|
|
|
return value.innerDistance; |
|
|
|
return value.unused1; |
|
|
|
return value.unused1; |
|
|
|
return value.offsetLS; |
|
|
|
return value.offsetLS; |
|
|
|
return value.unused2; |
|
|
|
return value.unused2; |
|
|
|
} |
|
|
|
|
|
|
|
|