diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-10 15:35:23 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-10 15:35:23 +0100 |
commit | 47e5b44576e581ae0b62ad1e3bed444b8a82cefd (patch) | |
tree | dc669acc78003dc9de405247106832d4700f4371 /client/src/ui.wgsl | |
parent | dbfb01fa7b5b05686dcbdd9d73643d7866810668 (diff) | |
download | weareserver-47e5b44576e581ae0b62ad1e3bed444b8a82cefd.tar weareserver-47e5b44576e581ae0b62ad1e3bed444b8a82cefd.tar.bz2 weareserver-47e5b44576e581ae0b62ad1e3bed444b8a82cefd.tar.zst |
spawn ui in world with click
Diffstat (limited to 'client/src/ui.wgsl')
-rw-r--r-- | client/src/ui.wgsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/ui.wgsl b/client/src/ui.wgsl index 6361782..4f55e25 100644 --- a/client/src/ui.wgsl +++ b/client/src/ui.wgsl @@ -46,5 +46,5 @@ fn vs_main(@builtin(vertex_index) vindex: u32, vi: VertexIn) -> VertexOut { } @fragment fn fs_main(vo: VertexOut) -> @location(0) vec4<f32> { - return textureSample(texture, texture_sampler, vo.uv) * vo.color; + return pow(textureSample(texture, texture_sampler, vo.uv) * vo.color, vec4(2.2)); } |