k_InfluenceVolumeSection.Draw(s, p, this);
k_SeparateProjectionVolumeSection.Draw(s, p, this);
k_CaptureSection.Draw(s, p, this);
//k_AdditionalSection.Draw(s, p, this);
k_AdditionalSection.Draw(s, p, this);
k_BakingActions.Draw(s, p, this);
PerformOperations(s, p, this);
public float unused0;
public Vector3 offsetLS;
public float unused1;
public float dimmer;
};
// Usage of StencilBits.Lighting on 2 bits.
float3 innerDistance;
float unused0;
float3 offsetLS;
float unused1;
float dimmer;
//
{
return value.offsetLS;
}
float GetUnused1(EnvLightData value)
float GetDimmer(EnvLightData value)
return value.unused1;
return value.dimmer;
if (probe.boxProjection == 0)
envLightData.minProjectionDistance = 65504.0f;
envLightData.dimmer = additionalData.dimmer;
else
envLightData.envShapeType = EnvShapeType.Box;
envLightData.minProjectionDistance = 0.0f;
envLightData.dimmer = 1;
// remove scale from the matrix (Scale in this matrix is use to scale the widget)
output.offsetLS = float3(0.0, 0.0, 0.0);
output.innerDistance = float3(0.0, 0.0, 0.0);
output.blendDistance = 1.0;
output.dimmer = 1.0;
return output;
#endif
UpdateLightingHierarchyWeights(hierarchyWeight, weight);
envLighting *= weight;
envLighting *= weight * lightData.dimmer;
if (GPUImageBasedLightingType == GPUIMAGEBASEDLIGHTINGTYPE_REFLECTION)
lighting.specularReflected = envLighting * preLightData.specularFGD;