Searched refs:diagCoeff (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/common/ |
H A D | bloom_common.h | 128 const float diagCoeff = (1.0f / 32.0f); in bloomDownscaleWeighted() local 138 vec3 color = colSample * diagCoeff * weight; in bloomDownscaleWeighted() 148 color += colSample * diagCoeff * weight; in bloomDownscaleWeighted() 170 color += colSample * diagCoeff * weight; in bloomDownscaleWeighted() 180 color += colSample * diagCoeff * weight; in bloomDownscaleWeighted() 258 const float diagCoeff = (1.0f / 32.0f); in bloomDownscale() local 264 … vec3 color = textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y - ts.y), 0).xyz * diagCoeff; in bloomDownscale() 266 color += textureLod(sampler2D(tex, sampl), vec2(uv.x + ts.x, uv.y - ts.y), 0).xyz * diagCoeff; in bloomDownscale() 272 color += textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y + ts.y), 0).xyz * diagCoeff; in bloomDownscale() 274 color += textureLod(sampler2D(tex, sampl), vec2(uv.x + ts.x, uv.y + ts.y), 0).xyz * diagCoeff; in bloomDownscale()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/ |
H A D | render_blur_common.h | 246 const float diagCoeff = (1.0f / 32.0f); in SoftDownscaleRGB() local 252 … vec3 color = textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y - ts.y), 0).xyz * diagCoeff; in SoftDownscaleRGB() 254 color += textureLod(sampler2D(tex, sampl), vec2(uv.x + ts.x, uv.y - ts.y), 0).xyz * diagCoeff; in SoftDownscaleRGB() 260 color += textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y + ts.y), 0).xyz * diagCoeff; in SoftDownscaleRGB() 262 color += textureLod(sampler2D(tex, sampl), vec2(uv.x + ts.x, uv.y + ts.y), 0).xyz * diagCoeff; in SoftDownscaleRGB() 368 const float diagCoeff = (1.0f / 32.0f); // 32.0: param in SoftDownscaleRGBLayer() local 374 …tureLod(sampler2DArray(tex, sampl), vec3(uv.x - ts.x, uv.y - ts.y, dirLayer.z), 0).xyz * diagCoeff; in SoftDownscaleRGBLayer() 376 …tureLod(sampler2DArray(tex, sampl), vec3(uv.x + ts.x, uv.y - ts.y, dirLayer.z), 0).xyz * diagCoeff; in SoftDownscaleRGBLayer() 382 …tureLod(sampler2DArray(tex, sampl), vec3(uv.x - ts.x, uv.y + ts.y, dirLayer.z), 0).xyz * diagCoeff; in SoftDownscaleRGBLayer() 384 …tureLod(sampler2DArray(tex, sampl), vec3(uv.x + ts.x, uv.y + ts.y, dirLayer.z), 0).xyz * diagCoeff; in SoftDownscaleRGBLayer()
|