Files
PhotonCamera/research/phocus_glsl/00_common_io/u16f28ui_0x302addd.frag
T
2026-07-18 16:37:48 +08:00

23 lines
653 B
GLSL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Recovered from a compiled proprietary binary for personal study.
* SHA-256: c5c354119ccc00f88f045a9b4300fd2d00e8bfabfeb9e4bb21433cf1bf76cc11
* ELF offsets: 0x302addd
* Symbols: u16f28ui_fragmentShaderSource
*/
#version 300 es
precision highp float;
precision highp sampler2D;
out uvec4 FragColor;
uniform sampler2D uInputTexture0;
uniform ivec2 uMargin;
void main() {
ivec2 texCoord = ivec2(gl_FragCoord.xy) + uMargin;
vec4 pixel = texelFetch(uInputTexture0, texCoord, 0);
// float [0,1] → uint [0,255],clamp 防止越界
vec3 rgb = clamp(pixel.rgb * 255.0 + 0.5, 0.0, 255.0);
FragColor = uvec4(uvec3(rgb), 255u);
}