Home
last modified time | relevance | path

Searched refs:betaTexture (Results 1 – 6 of 6) sorted by relevance

/dports/graphics/mandelbulber/mandelbulber2-2.26/mandelbulber2/src/
H A Dshader_env_mapping.cpp46 double betaTexture = -reflect.GetBeta(); in EnvMapping() local
50 if (betaTexture > 0.5 * M_PI) betaTexture = 0.5 * M_PI - betaTexture; in EnvMapping()
52 if (betaTexture < -0.5 * M_PI) betaTexture = -0.5 * M_PI + betaTexture; in EnvMapping()
55 double dty = (betaTexture / M_PI + 0.5) * texHeight + texHeight * 8.0; in EnvMapping()
H A Dshader_background.cpp51 double betaTexture = rotatedViewVector.GetBeta(); in BackgroundShader() local
56 if (betaTexture < 0) in BackgroundShader()
58 betaTexture = -betaTexture; in BackgroundShader()
63 + cos(alphaTexture) * (1.0 - betaTexture / (0.5 * M_PI)) * texWidth * 0.5 in BackgroundShader()
66 + sin(alphaTexture) * (1.0 - betaTexture / (0.5 * M_PI)) * texHeight * 0.5; in BackgroundShader()
77 double betaTexture = -rotatedViewVector.GetBeta(); in BackgroundShader() local
78 if (betaTexture > 0.5 * M_PI) betaTexture = 0.5 * M_PI - betaTexture; in BackgroundShader()
79 if (betaTexture < -0.5 * M_PI) betaTexture = -0.5 * M_PI + betaTexture; in BackgroundShader()
83 (betaTexture / M_PI + 0.5) / params->backgroundVScale + params->backgroundTextureOffsetY); in BackgroundShader()
H A Dtexture_mapping.cpp112 double betaTexture = -point.GetBeta(); in TextureMapping() local
114 textureCoordinates.y = betaTexture / M_PI; in TextureMapping()
/dports/graphics/mandelbulber/mandelbulber2-2.26/mandelbulber2/opencl/engines/
H A Dshader_background.cl54 float betaTexture = -atan2(rotatedViewVector.z, length(rotatedViewVector.xy));
55 if (betaTexture > 0.5f * M_PI_F) betaTexture = 0.5f * M_PI_F - betaTexture;
56 if (betaTexture < -0.5f * M_PI_F) betaTexture = -0.5f * M_PI_F + betaTexture;
60 texCord.y = (betaTexture / (M_PI_F) + 0.5f) / consts->params.backgroundVScale
97 float betaTexture = atan2(rotatedViewVector.z, length(rotatedViewVector.xy));
100 if (betaTexture < 0.0f)
102 betaTexture = -betaTexture;
108 tex.x = 0.25f + cos(alphaTexture) * (1.0f - betaTexture / (0.5f * M_PI_F)) * 0.25f + offset;
109 tex.y = 0.5f + sin(alphaTexture) * (1.0f - betaTexture / (0.5f * M_PI_F)) * 0.5f;
H A Dshader_env_mapping.cl45 float betaTexture = -GetBeta(reflect);
49 if (betaTexture > 0.5f * M_PI_F) betaTexture = 0.5f * M_PI_F - betaTexture;
51 if (betaTexture < -0.5f * M_PI_F) betaTexture = -0.5f * M_PI_F + betaTexture;
54 float dty = (betaTexture / M_PI_F + 0.5f) * texHeight + texHeight * 8.0f;
H A Dtexture_mapping.cl115 float betaTexture = -GetBeta(point);
117 textureCoordinates.y = betaTexture / M_PI_F;