Shaders Questions
3
I have this simple shader that is applied to a quad for a fullscreen effect:
shader_type spatial;
render_mode unshaded;
uniform vec3 worldspace_position = vec3( 0.0f, 2.0f, 2.0f );
uniform float rad...
Hamrnand asked 14/11, 2023 at 0:13
2
I have this basic raymarch shader, which is applied to a fullscreen quad, that draws a variable amount of "lines" (basically capsules at really small widths so they appear like lines).
shader_type sp...
Obed asked 11/11, 2023 at 19:32
4
I admit, I don't really understand depth mapping so if there is anything I should know, tell me.
A Spatial shader can use uniform hint_depth_texture but not a CanvasItem, I'm guessing this is because...
Cleaves asked 3/11, 2023 at 5:38
7
Hi! I'm trying to write a shader that replicates the lighting of the StandardMaterial, because I want to make some small modifications, but I'm a little stumped. My diffuse lighting looks exactly like...
Gertrudis asked 7/11, 2023 at 2:19
1
I am trying to understand this shader:
shader_type canvas_item;
render_mode unshaded;
uniform float circle_size : hint_range(0.0, 1.05);
uniform float screen_width;
uniform float screen_height;
voi...
Dioptric asked 8/11, 2023 at 11:0
4
Solved
I want to create a menu screen where the text moves into the window when the scene starts; the movement of the menu items should be done via shaders (or rather via a single shader that I hope to reuse...
Dingle asked 6/11, 2023 at 11:31
3
Good morning Community.
I tell you my problem.
I am using multimesh3d, to create multiple instances with a shader that makes cuts to the image, depending on the position and size of the subimage. My...
Recidivate asked 7/11, 2023 at 0:13
17
Solved
I’m trying to apply vertex displacement on a planar mesh particle (shuriken) via a shader. The method I have been trying adjusts the vertex position in the hlsl shader by changing e.g the z parameter ...
Deyoung asked 29/10, 2023 at 15:18
11
Hi,
I've just started working with shaders and wanted to start with something simple. A Button.
But I ran into a problem that the text of the button has very weird (random?) UV values, which makes it...
Disservice asked 1/11, 2023 at 17:47
27
I'm currently working on a voxel raymarching shader where I render an inverse box with a 3D texture which holds the voxel data.
Everything works quiete well, I can raymarch against the voxels in local...
Cailean asked 26/10, 2023 at 13:59
7
Solved
I'm writing a vertex displacement shader that needs to do some operations in view space. The problem is, if I just use MODELVIEW_MATRIX or VIEW_MATRIX then the shadows get messed up (I'm guessing it u...
Morion asked 29/10, 2023 at 19:51
6
Solved
I am using a shader I found online for a simple binary conversion (straight black and white) filter. Only problem is that it is affecting an entire block rather than the area of the sprite. Nothing is...
Britain asked 29/10, 2023 at 19:0
3
I am trying to get to grips with the BackBufferCopy node to create screen reading shaders and I think I understand the basics. For example, in this project:
with this shader:
shader_type canvas_ite...
Koestler asked 25/10, 2023 at 14:11
6
Hey there, if somebody had the same issue:
i'm building my own lit spatial shader with the visual shader graph,
here the graph, (i tested with an expression as well i still have a problem)
here the...
Waistband asked 24/10, 2023 at 15:35
10
I've been attempting to convert this shader over to Godot: https://www.shadertoy.com/view/NlGcDh
The original shader uses its own lighting calculations, but I'm trying to make it work with Godot's bu...
Tawannatawdry asked 23/10, 2023 at 12:27
11
I developed a basic understanding of shaders but I cannot wrap my head around screen shaders and there seems to be a noticeable lack of tutorials on it :/ I read this page multiple times: https://docs...
Davidadavidde asked 23/10, 2023 at 20:1
3
I need a sprite which I can smoothly desaturate, but which ALSO works with masks. There are numerous answers online for how to either make sprite shaders which work with masks, or for shaders which ha...
Cuspidate asked 25/4, 2017 at 10:58
6
Solved
I am trying to make a shadder where I input a time in secs and it make the texture invisible by this time, but I could not understand how to use the TIME for this since I could not find any doc about ...
Marienbad asked 22/10, 2023 at 23:26
13
Hey all,
I've been learning Godot to create a procedural planet generator. I've been playing around with different approaches including writing GLSL shader code, building an ArrayMesh, etc.
While I'...
Ladyship asked 17/7, 2020 at 6:57
2
I am trying to understand this shader: https://godotshaders.com/shader/2d-liquid-fill-inside-sphere/
The shader is using a weird format where it says float and then the code on the next line is inde...
Matamoros asked 21/10, 2023 at 20:49
7
I'm making a CanvasShader.
Normally for doing something in world-space I'd just set up a varying in vertex() like
varying vec2 WorldSpace;
void vertex() {
WorldSpace = (MODEL_MATRIX * vec4(VERTEX, 0...
Impetuous asked 19/10, 2023 at 23:20
4
I have a shader:
shader_type canvas_item;
uniform float progress: hint_range(0.0, 1.0) = 0.0;
void fragment() {
COLOR.a = step(UV.x, progress);
}
that is supposed to reveal an image via a tween wh...
Sawfly asked 18/10, 2023 at 12:21
9
I made a house with three rooms in blender and exported it to Godot, the ceiling is just a plane mesh. So, in Godot, I added a light in the corridor and it looks like It "invades" the other rooms by t...
Manganese asked 9/10, 2023 at 19:46
1
I want to create a vec2 uniform shader but I cannot see how to set a default type. I know for floats there is hint_range and color gets source_color but what if I just want a vector2?
Arawn asked 17/10, 2023 at 7:51
1
Hello all! I'm brand new to Godot and have just completed a course on Godot 4.1. I have begun working on my first project and have hit a bit of a snag. I LOVE the visual shader tool, but I can't seem ...
Nye asked 15/10, 2023 at 17:24
© 2022 - 2024 — McMap. All rights reserved.