diff --git a/Res/Shader/volume.hlsl b/Res/Shader/volume.hlsl index 82b618a2..30ef62ea 100644 --- a/Res/Shader/volume.hlsl +++ b/Res/Shader/volume.hlsl @@ -112,12 +112,8 @@ float4 MainPS(PSInput input) : SV_TARGET { float3 rayDir = normalize(input.worldPos - _CameraPos); - float tmin, tmax; - if (!intersectBox(_CameraPos, rayDir, _BBoxMin, _BBoxMax, tmin, tmax)) { - return float4(0, 0, 0, 0); - } - - tmin = max(0, tmin); + float tmin = 0.1; + float tmax = 1000.0; NanoVolume volume; initVolume(volume);