Added frustum culling;
Added geometry data; Changed name of VolumeObject to AoVolume; Removed the capsule type in VolumeType, all volumes are box volume now;
This commit is contained in:
@@ -43,18 +43,7 @@ float CapsuleSDF(float3 positionWS, VolumeData data)
|
||||
|
||||
float EvaluateAOVolumeMask(VolumeData data, float3 positionWS, float3 normalWS)
|
||||
{
|
||||
float volumeSDF = 1.0;
|
||||
switch (data.volumeType)
|
||||
{
|
||||
case VOLUMETYPE_CAPSULE:
|
||||
volumeSDF = CapsuleSDF(positionWS, data);
|
||||
break;
|
||||
case VOLUMETYPE_BOX:
|
||||
volumeSDF = BoxSDF(positionWS, data);
|
||||
break;
|
||||
}
|
||||
|
||||
return volumeSDF;
|
||||
return BoxSDF(positionWS, data);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user