Shaders Questions

3

I am confuse with the priority parameter for the nodes, for me it dosent seem to do what I was expecting, and also , the docs says "Nodes whose process priority value is lower will have their process...
Discommodity asked 16/5, 2023 at 14:45

3

For some reason texture shadders like : shader_type spatial; render_mode unshaded; uniform sampler2D refletion_tx; void fragment() { ALBEDO = texture(refletion_tx,vec2(1.0-SCREEN_UV.x,SCREEN_UV.y))....
Worldbeater asked 9/5, 2023 at 14:6

6

Solved

I'n my game, im looking to create an emissive grid shader, unfortunately im pretty new at shaders. I found a tutorial for unity that does pretty much what I want, however Im not finding anything simil...
Esch asked 12/5, 2023 at 19:10

2

I tried making a scene with all the shaders used as materials, then load it into the scene, then free it... func do_shader_preload(): game.shaders_preloaded = true var shaders = load("res://scenes/...
Barbel asked 10/5, 2023 at 1:54

4

Solved

when I import a picture with red, yellow and blue into the shader of godot 3.5 and 4 as sampler2D txeture, they will give me different result. in the 3.5 it is great, but the godot 4 will mixing all c...
Ance asked 10/5, 2023 at 15:59

1

Hi! I was trying to set a uniform sampler 2D in code with set_shader_param, but I was noticing that it wasn't working. I generate a NoiseTexture in code, try to pass it to the shader but it doesn't s...
Bobolink asked 9/5, 2023 at 14:12

5

Hello everyone. I am trying to reproduce the following tutorial to get a silouhette on my players whe they go behind things : https://www.gdquest.com/tutorial/godot/shaders/silhouette-2d/ It works...
Melano asked 10/7, 2021 at 2:23

1

I want to create a fake shadow with a mesh that will only be visible from a distance, using the shadow_to_opacity render mode. Can it be inverted so that the shadowed areas become transparent and the ...
Ataliah asked 8/5, 2023 at 23:10

7

Solved

So I've been following a tutorial for baking lightmaps in Godot 4 and it's just not working for me. I think I followed all the instructions correctly, but when when I go to bake my lightmaps, there se...
Berberine asked 7/5, 2023 at 23:3

6

So I am trying to programmatically generate an image, via Texture2D, for use in a shader. I do this with a custom Texture2D inherited resource that writes to an ImageTexture and outputs from that. I a...
Scaler asked 6/5, 2023 at 16:19

4

Solved

Hey! I was working on procedural generation to world maps, and I'm at a point where I'm stuck I have a shader that can take in noise and apply a gradient to it for a nice looking island, but I'm not s...
Combine asked 28/4, 2023 at 14:58

2

Solved

So, I'm trying to figure out what the slope is in a shader so I can make changes to albedo based on that. I assume I need to do something with the normal, but I'm really not sure what.
Lalalalage asked 29/4, 2023 at 0:30

2

Anyone knows a painless way to do dynamic self-shadows from a directional source on a heightmap terrain? I could probably conjure something up but was wondering if there's something already in existen...
Castiron asked 30/4, 2023 at 17:0

2

Hi , so i'm trying to achieve two things in godot that i think are really cool : 1/ a ribbon effect where polygons of a flat geometry always faces the camera ( , [https://forums.unrealengine.com/t/...
Marmoset asked 27/4, 2023 at 19:1

2

Solved

Hey! I've been using Godot for a while, but I've just started trying to write a compute shader and I'm beyond confused. In my script, I have a large array called asteroids. I'm using various encode f...
Montpelier asked 22/4, 2023 at 18:40

2

Solved

I want to use Polygon2D with viewports for some interesting framing. I want the outside of these frames surrounded with a black or white outline. How can I do this?
Tenor asked 19/4, 2023 at 23:7

6

Solved

Hello everyone! I don't think this is a bug with godot, So I post it here for help! In my project, I need to get the position of each instance in shader to do some computation. I have tried NODE_PO...
Timmie asked 20/4, 2023 at 7:49

50

Solved

i made a shader that interprets the RGB color channels als OKLCH: RGB channel | interpreted as ---|--- Red, 0 – 255 | Lightness, 0.0 – 1.0 Green, 0 – 255 | Chroma, 0.0 – 0.34 Blue, 0 – 255 | Hue, 0 –...
Expansive asked 11/4, 2023 at 19:46

2

Solved

i am preparing this Godot project for release as an open-source Git repository: rgb-as-oklch.zip2MB i don't know if shaders are (by law) software or media, so i don't know which license i should choo...
Mutineer asked 17/4, 2023 at 11:42

2

I would like to be able to write a shader that can generate additional geometry on the fly. Is there a way to do this in Godot? I was hoping Godot 4 would open up this ability.
Grassi asked 17/4, 2023 at 17:5

5

Solved

I want to create a shader outline for a sprite and for that I want to expand the region around the sprite so there is more white space. I know there is a region option for Sprite2D but that one repe...
Stingo asked 18/4, 2023 at 8:58

4

Solved

I am following the GDQuest shader secrets course and want to create an outline shader but I am confused about the datatypes. The code so far looks like this: shader_type canvas_item; uniform vec4 l...
Gogetter asked 17/4, 2023 at 20:56

4

I'd like to make a paint program and am trying to figure out an efficient way to lay down brush strokes. Basically, I need to create one image to be the canvas, and then repeatedly draw the brush head...
Adrianadriana asked 17/4, 2023 at 16:59

2

Solved

Hello everyone, could you please advise if it's possible to connect my custom shader (I've created an outline shader with the effects I need) to buttons? If so, could you provide some guidance on how ...
Certain asked 16/4, 2023 at 7:20

1

Solved

Hi! I've got a fun effect I'm trying to achieve. I want to mask out a mesh so that it only renders what's underneath the shape of my sprite. Basically, I've got a sphere with two materials: one black...
Runny asked 13/4, 2023 at 18:25

© 2022 - 2024 — McMap. All rights reserved.