a shot in the dark to fix compile error on intel

This commit is contained in:
Xonk
2025-03-18 15:03:23 -04:00
parent 6aea13ee8f
commit 43096d747a
2 changed files with 9 additions and 9 deletions

View File

@ -227,7 +227,7 @@ uniform sampler2D colortex4;
vec4 raymarchCloud(
int LayerIndex,
float samples,
int samples,
vec3 rayPosition,
vec3 rayDirection,
float dither,
@ -327,7 +327,7 @@ vec4 raymarchCloud(
#endif
for(int i = 0; i < int(samples); i++) {
for(int i = 0; i < samples; i++) {
// check if the ray staring position is going farther than the reference distance, if yes, dont begin marching. this is to check for intersections with the world.
@ -459,8 +459,8 @@ vec4 GetVolumetricClouds(
NormPlayerPos.y += 0.03 * heightRelativeToClouds;
#endif
int maxSamples = 15;
int minSamples = 10;
float maxSamples = 15.0;
float minSamples = 10.0;
int samples = int(clamp(maxSamples / sqrt(exp2(NormPlayerPos.y)),0.0, minSamples));
// int samples = 30;