Shaders Questions
5
So i have an equation to displace the y vertex, but the shader seems to ignore the VERTEX.y in the sin and just makes a normal sine wave. Can I not reference the same vertex more than once in an equ...
Boulevard asked 11/4, 2023 at 16:10
2
Solved
So... Basically, I have a AnimationPlayer node in my enemy scene.
I use this shader to make the sprite blink:
shader_type canvas_item;
uniform vec4 flash_color:source_color = vec4(1.0);
uniform float...
Talkingto asked 10/4, 2023 at 21:15
10
Solved
I'm writing some post-processing effects using SCREEN_TEXTURE in 3.5. I tried to search about how I can preview my changes to such a shader in the editor, but I haven't found anything that works so fa...
Wartburg asked 9/4, 2023 at 2:48
1
Hi,
I need help converting the color balance system from XnView Classic to a shader usable in Godot 4.
Here are some screenshots of the system I'm talking about, it's called "Color balance" and each...
Cayuga asked 9/4, 2023 at 13:53
33
Solved
I am trying to recreate this awesome solution to water flowing
(the well thought out answer below)
I have a function to create the flow map in gdscript (which is translated to just pixel by pixel col...
Iniquity asked 3/3, 2023 at 6:40
2
Ai wrote this code:
shader_type sky;
uniform vec4 sky_top_color : hint_color = vec4(0.0, 0.0, 0.1, 1.0);
uniform vec4 sky_horizon_color : hint_color = vec4(0.0, 0.0, 0.2, 1.0);
uniform sampler2D ...
Stenotype asked 2/4, 2023 at 8:30
2
I found an outline shader that works but I have to manually attach it to every node or use a viewport to draw it over a set of nodes, However this messes up my mouse position and is a chore to deal wi...
Abrade asked 30/3, 2023 at 2:21
4
Hello!
I have two issues with the 3D project I cannot find a solution to. Godot version is 3.5.2-custim build on Windows 10.
1) Shadows stop rendering at some (not very far) distance. And I can see ...
Corymb asked 24/3, 2023 at 4:59
2
I'm using the low poly water shader to have some water effects in a voxel terrain. I am also using a camera with orthogonal perspective.
The problem is that, when in orthogonal perspective, the water ...
Rosabelle asked 22/3, 2023 at 10:31
4
Hi all!
I'm very new to Godot, and I'm facing a problem a don't know how to solve. I made a character combining an animated sprite and a cloak moved programatically with the movement of my character....
Okubo asked 21/3, 2023 at 22:21
2
Hi!
I just had a question of how to implement a specific effect for my game, and I'm not well versed with shaders so I thought I'd ask here on the forum.
I've been working on my game for a while and ...
6
Solved
Hi! I'm currently working on a project where I'm using Godot's 2D engine to program a Wolfenstein 3D style first-person renderer. I have a Node2D set up to draw this:
This should be enough data to ge...
Liquorish asked 8/3, 2023 at 18:25
10
Solved
I Know Godot takes UV maps from 3Dprogram (eg.Blender). But If I did not have any UV map in Blender or did not connect UV map node to my object, what would UV map of my imported object look like in Go...
Osmond asked 6/3, 2023 at 5:6
5
it's in official tutorial : Your Fisrt 3D Shader
tutorial is here: https://docs.godotengine.org/en/stable/tutorials/shaders/your_first_shader/your_first_3d_shader.html
In " Interacting with light " it...
Businessman asked 5/3, 2023 at 15:53
2
Hi,
I need advice about designing a horizontal runic circle for a 3D game, as shown in this link for example:
https://www.shutterstock.com/image-vector/rune-circle-futhark-155806418
I want to be abl...
Latonia asked 20/2, 2023 at 20:55
3
I use a shader to toggle on and off the roof of a house.
if (is_roof_pixel) {
ALPHA = 0.0;
}
The problem is this lets sunlight in.
Is there a way to hide the roof without letting in directional lig...
Mooch asked 16/2, 2023 at 19:5
1
Solved
I have to boxes. In the editor the top box casts a shadow on the lower one.
In game the shadow does not appear:
The light is coming from a DirectionalLight3D
This is the material Im using for th...
Nephew asked 15/2, 2023 at 19:19
2
Solved
So I have different types of materials in my project.
I need to distinguish them in code when setting the uniforms.
For example: material.metallic only works for SpatialMaterials.
It would be material...
Parfleche asked 12/2, 2023 at 15:5
2
3
Hello there,
for my RPG project I added some grass to the 3D scene:
I created a scene asset for a tuft of grass and another scene asset of a fern plant
I created a spatial shader so that the plants ar...
Anabas asked 9/2, 2023 at 15:44
3
basically there is no sky on default anymore and all the lighting and junk look bad. (I am using future+ to for it)
I think I just need help setting up a world environment with the sky and stuff and ...
17
Solved
I'm developing a game with Godot 3.5 GLES2 and running into the problem that shaders that work fine on desktop or web do not draw when I export my project to Android (I can't upgrade to Godot 4 becaus...
Propensity asked 2/2, 2023 at 0:8
1
Hello.
Most of the shaders from shader toy work, once the main method is replaced with
void fragment(){
vec2 fragCoord = FRAGCOORD.xy;
ve2 iResolution = 1.0 / SCREEN_SIZE_PIXELS
float iTime = TIME.
H...
Favata asked 2/2, 2023 at 18:44
1
Ive gota fragment shader.
Ideally Id like to have a function like this:
void draw_normal_pixel() {
vec2 base_uv = UV;
vec4 albedo_tex = texture(texture_albedo,base_uv);
albedo_tex *= COLOR;
ALBE...
Godiva asked 26/1, 2023 at 18:56
2
I followed a tutorial on adding water in Godot 4, which is a fragment/vertex shader - it works but shown on the picture is an example of how 'evenly lit' it is everywhere.
At the end of the tunnel i...
Vocoid asked 26/1, 2023 at 7:23
© 2022 - 2024 — McMap. All rights reserved.