CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 16:49:46 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=2ba00f34076aca0744dee0c2de4fae0dcf9e915ebd6581017d5e6a749f320edba%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22VbUR94ReyCdEBKhLJC6w_wyRuWNnYwZE%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cfda473914d817-BLR
Triplanar Shader for Godot - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shader_type spatial;
- uniform sampler2D texture_x: source_color, repeat_enable;
- uniform sampler2D texture_y: source_color, repeat_enable;
- uniform sampler2D texture_z: source_color, repeat_enable;
- uniform float UV_Scale = 0.5;
- uniform vec4 albedo_modulate : source_color = vec4(1.0, 1.0, 1.0, 1.0);
- uniform float modulate_intensity : hint_range(0.0, 1.0);
- void fragment() {
- vec4 vertex = INV_VIEW_MATRIX * vec4(VERTEX, 1.0);
- vec3 normal = normalize((INV_VIEW_MATRIX * vec4(NORMAL, 0.0)).xyz);
- vec3 adjusted_normal = pow(abs(normal), vec3(8.0));
- vec3 weights = adjusted_normal / (adjusted_normal.x + adjusted_normal.y + adjusted_normal.z) * 3.0;
- vec2 uv_x = vertex.zy * UV_Scale;
- vec2 uv_y = vertex.xz * UV_Scale;
- vec2 uv_z = vertex.xy * UV_Scale;
- float use_y_up = float(normal.y > 0.0);
- vec3 color_x = texture(texture_x, uv_x).rgb * weights.x;
- vec3 color_y_up = texture(texture_y, uv_y).rgb * weights.y;
- vec3 color_y_down = texture(texture_x, uv_y).rgb * weights.y;
- vec3 color_z = texture(texture_z, uv_z).rgb * weights.z;
- ALBEDO = (color_x + mix(color_y_down, color_y_up, use_y_up) + color_z) / 3.0 * albedo_modulate.rgb + (albedo_modulate.rgb * vec3(modulate_intensity,modulate_intensity,modulate_intensity));
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐ G2A Bug ⭐ (Get more on BTC swaps) ✅ NEVER S...
JavaScript | 5 sec ago | 0.24 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 7 sec ago | 0.10 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 7
JavaScript | 14 sec ago | 0.24 KB
-
⭐✅ Jack's Profit Method ✅ NEVER SEEN BEF...
JavaScript | 15 sec ago | 0.24 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 18 sec ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 0
JavaScript | 25 sec ago | 0.24 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 29 sec ago | 0.10 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ I
JavaScript | 36 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand