Shaders Questions
2
I notice that the vertex shader has a UV property, but I cant find any documentation about it.
In the vertex shader is UV a vector2 that represents the x, y position of the current pixel in the textu...
Meanie asked 7/2, 2022 at 19:0
5
I'm trying to make an effect similar to this for my title screen
I wanted to make it vertical, and with an animated texture of a crowd. I'm not really familiar with shaders, I'm not really sure where...
Esthete asked 6/2, 2022 at 1:13
3
Hello!
I'm still working on my first 3D game and I just created a simple outline shader that is affecting all meshes in the root node. However, I want to avoid this shader being applied to my player m...
Cryobiology asked 5/2, 2022 at 15:39
14
Is it possible (possibly with a particle shader) to destroy particles if they leave the AABB bounds of a box (I'm getting the bounds from a MeshInstance)? I have the AABB of the body I want them to re...
Abrahamsen asked 4/2, 2022 at 11:20
2
I have a scene that has a lot of semi transparent decals that need to be applied to walls. The decals use a duplicate of the geometry of the surfaces they are being applied to - so all the polygons of...
Ciaracibber asked 5/2, 2022 at 15:32
2
Hello, I'm working on a underwater simulator for ROVs (or that least that is the excuse I'm using to learn Godot). Right now I'm trying to implement a caustics shader.
I have it mostly working. I gen...
Kirven asked 10/5, 2020 at 20:52
9
I have a wave shader I'm using on a ColorRect for a fullscreen Quake underwater-type effect:
shader_type canvas_item;
uniform float amp_x : hint_range(0, 10) = 3.0;
uniform float amp_y : hint_range(0...
Giddings asked 29/1, 2022 at 21:53
9
I calculated the screen coordinates of the vertices in the vertex shader, and inversely calculated the screen coordinates back to space coordinates. Then when I adjust the viewing direction, the verti...
Gaunt asked 25/1, 2022 at 8:44
6
I'd like to make my shader material behave like a billboard so that it always faces my camera regardless of where the camera is.
I.e. I'd like the shader to work the same way as an animatedSprite3D b...
Loesceke asked 20/1, 2022 at 19:29
12
In a VR application, it's common to hilight an object in reach of the user's hand, to let him know that he can iteract with. The way I am doing this right now is by just setting the material like this...
Hawkweed asked 17/1, 2022 at 1:31
3
I am trying to make a transition shader for UI interfaces. All the control nodes in the tree share the same shader material.
The goal would be to have a shader that is capabe of scaling the whole tre...
Pennant asked 8/1, 2022 at 15:47
12
I want to write a custom light shader for water(so that light reflects off of the surface in little specks), but I haven't been able to find anything on light shaders. All I have is this:
DIFFUSE_LIG...
Obtain asked 6/5, 2020 at 14:17
9
Hi all!
I'm trying to do a 2.5D point&click game, where the background is going to be drawn in 2D but the character and the objects are going to be 3D. I would like to have a simple invisible 3D g...
Gloucester asked 23/12, 2021 at 16:20
7
I'm trying to pass arbitrary int data to the shader by treating each of RGBA as an 8-bit int. I'm using these values as lookups into another texture. The results I've gotten so far give incorrect resu...
Concertante asked 23/12, 2021 at 1:7
3
Hi~
I'm currently working on a top-down game and I wanted the player to be able to pass behind the walls at the bottom of the screen. That's the easy part.
The problem is that I also want the player t...
Rabblement asked 15/12, 2021 at 11:0
21
ive found "DecalCo" on the godot asset packs site
however the shaders dont compile in godot 3.4
is there an alternative?
now im using the simple way of spawning a quad with a transparent texture
Ionium asked 13/12, 2021 at 10:6
11
Was helping @Nanites with their project, but I think this deserves it's own thread. I implemented supersampling anti-aliasing (SSAA) for 2D GLES3 projects which also has a render scale slider (10% t...
Counter asked 13/12, 2021 at 5:6
4
I have an image:
I have a shader that removes the Magenta color from the image causing it to look like this:
Now I want to take the results and add a green outline around the brown rectangle that ...
Artair asked 7/12, 2021 at 14:45
3
Hello, hope you guys are doing ok.
I am trying to render a Sprite3D (for some popups like "Talk to this NPC"), and for some reason, the water shader that I am using is rendering on top of the Sprite3...
Debauch asked 8/12, 2021 at 11:14
2
I'm working on a full-screen post processing effect. I need to be able to save or write to an intermediate texture to process in an additional pass. However, there does not seem to be a way to write t...
Fairground asked 30/11, 2021 at 15:29
2
Given a vec3 color how can I make it lighter and more desaturated so that I can simulate distance?
I tried using mix, but I cant figure out what the third argument does? Every time I use it I get al...
Anti asked 29/11, 2021 at 18:46
10
Please help with normal map shder. Here is my code:
shader_type spatial;
uniform sampler2D _normal : hint_normal;
varying mat3 TBN; // from view to tangent space
varying mat3 INV_TBN; // from tange...
Politesse asked 12/11, 2021 at 13:25
3
Good day,
The effect I want to achieve is an object that is invisible when no light is shined upon it (like with lights_only render mode).
But not turn my sprite into a white mess so I woud like to us...
Ethylethylate asked 6/11, 2021 at 0:15
6
In the last two days I have been coding a shader to compute a cellular automaton (well, actually, it is a partial differential equation, but for practical reasons there's no difference). Everything wo...
Experienced asked 1/11, 2021 at 21:14
5
Hi,
As imported textures in godot 4 no longer provide the ability for these to be flagged as repeating does any one know how a uniform sampler2d texture can be flagged for the shader as repeating?
T...
Tautologize asked 28/10, 2021 at 21:22
© 2022 - 2024 — McMap. All rights reserved.