Shaders Questions

1

I wan to influence a visual shader from GDScript, I know I need to use unifom to get that connection. However, I cannot seem to find node for that in the visual shader. The only thing I could find was...
Glandule asked 12/8, 2023 at 9:5

1

Solved

Welcome to the forums @ArtcadeDev! If you add a Viewport node, make sure own world is turned off, set transparent BG to true in the properties, and then make it the same size as the game view, you sh...
Rendarender asked 5/6, 2021 at 17:25

3

Is there an easy way to get the camera’s forward vector in a surface shader (the near clip plane’s normal)? Perhaps a built-in shader constant or input struct variable? I want something like the viewD...
Abrasion asked 6/12, 2011 at 16:40

2

Solved

I'm trying to create a shader to render dots on the screen. While these dots are positioned in 3D space, I want to scale them so that they always appear to be 5 pixels in diameter, regardless of how f...
Standoff asked 9/8, 2023 at 14:7

2

does anyone know how to make this shader code to make a movement on the texture more optimized so that it can be changed during the game without sudden cuts shader_type canvas_item; uniform vec2 dir ...
Abbotsun asked 15/7, 2023 at 11:24

2

I wanted to recreate the water of this game called "kingdom", I wanted to know how to create these effects in the water (white lines) using shader disclaimer: i already made the reflection.
Orthoclase asked 8/7, 2023 at 19:45

6

Solved

Hey guys! I am new to Godot and have run into a bit of a pickle. Just to give some background, I want to have interactables in my game. I am using to shaders to give feedback to the user, a highligh...
Disprove asked 4/7, 2023 at 9:28

2

Hi all! It's nice to be here 🙂 I am working on some terrain generation in Godot 4.0.3. I have a vertex shader that deforms a mesh, and I am generating a HeightMapShape3D for a CollisionShape3D. I am...
Anthocyanin asked 2/7, 2023 at 17:59

4

Solved

I'm getting no errors, but for some reason a hover shader I used in godot 3 doesn't work anymore. Does anyone know why? This is the code: shader_type canvas_item; uniform float height = 5.0; uniform ...
Octant asked 29/6, 2023 at 13:31

1

First of all: I'm new to shaders, but not new to coding. I'm porting a "portal effect" prototype, and I'm having different results (in light) in Godot 3.5.1 and Godot 4.0 beta 15. This portal works l...
Pola asked 25/1, 2023 at 14:25

2

Solved

I am converting some fancy mesh generation into a vertex shader. For it to work, each vertex needs some extra information. Something like Unity's MeshRenderer.additionalVertexStreams is what I'm looki...
Arabinose asked 26/6, 2023 at 23:11

1

shouldn't LIGHT_COLOR components equal 1.0 with white color and energy 1.0 and no ambient?
Homo asked 26/6, 2023 at 2:47

1

Heya, I've been looking into custom post-processing shaders for later use in-game events or for stylistic purposes, such as a nearest-neighbor downscaler for a pixelated look. However, I've been expe...
Chemesh asked 7/5, 2023 at 18:26

4

Hi, I am looking for ideas how to make really high detailed planet Saturn rings? I thought of using blender to create a flat cylinder then to multiply that but does anyone have other suggestions or wa...
Aggarwal asked 2/3, 2015 at 22:26

2

To get a reference to the node I am doing this node_reference = get_node("/root/node_parent/node") I am trying to set the nodes shader material and the shader file it is using. I know the var I stor...
Introject asked 15/6, 2023 at 12:50

5

Solved

Good day, dear colleagues. Please help me with solving one trivial problem. There is a two-dimensional array of a certain size, filled randomly with zeros and ones. Assume that the size of the array i...
Szeged asked 12/6, 2023 at 8:14

19

Solved

I have a 3D model in blender with custom normals that I baked onto the vertex colors. In godot, I'm trying to use the vertex colors as normal for my toon shader to get stylized shadowing on the face. ...
Latonya asked 3/6, 2023 at 11:5

8

Solved

I moved to Godot 4.0.2 yesterday and noticed strange behaviour with the COLOR value in the fragment() function of my shader. I have a GPUParticles2D particle system that has a basic shader applied to ...
Kaohsiung asked 9/4, 2023 at 3:53

12

Solved

I'm really stuck and have no idea how to fix this, I would put it under the rug if I could but it's really noticeable no matter what I do. I'm using Godot 4.0.3 I want to use this shader code I took ...
Maryellen asked 3/6, 2023 at 5:0

5

Hi All, I was hoping some more experienced people might provide some (general) feedback around some techniques for creating 3d explosions/spell effects. In my game, the graphics style is similar to W...
Saipan asked 30/5, 2023 at 12:17

9

im trying to write a skyshader heres what i have so far; shader_type sky; render_mode use_quarter_res_pass; group_uniforms sky; uniform vec3 top_color : source_color = vec3( 0.1, 0.6, 1.0 ); uni...
Willams asked 30/5, 2023 at 9:7

1

Hi everyone, I'm working on a visualization of a simple (and mostly inaccurate) climate simulation on a planet. So basically what I have is an icosphere with every vertex as a sample point in the simu...
Cryogen asked 30/5, 2023 at 19:26

3

Hello, I'm working on a simple raymarcher and I could not manage to find why I get this deformation issue: It could be caused by a wrong depth test or because of the way ray direction is computed (o...
Expression asked 28/5, 2023 at 16:44

3

Solved

I've spent the past couple days trying to recreate a water shader I found online, but I'm struggling to get it work correctly. https://alexanderameye.github.io/notes/stylized-water-shader/ More speci...
Scissor asked 28/5, 2023 at 20:11

3

Solved

Hi guys, I have created a simple scene with a MeshInstance3D containing a PlaneMesh. The material assigned to the PlaneMesh is a simple shaderMaterial. Shader code: shader_type spatial; render_mod...
Thermoelectrometer asked 26/5, 2023 at 14:2

© 2022 - 2024 — McMap. All rights reserved.