Shaders Questions

1

Is there a way to share functions or even constants like PI in way that avoid me of writing it up in every shader I make ?
Unquestionable asked 9/11, 2022 at 20:32

6

Hello! If I do this: uniform mat3 R; void vertex() { VERTEX = R * VERTEX; } The mesh disappears even though matrix R (when visualized in shader paramerers section) is identity matrix. So it shouldn't...
Tsar asked 8/11, 2022 at 17:52

3

Hello! Godot version 3.5.stable. Multi-pass material duplicates geometry for me. Each material pass creates another visible mesh instance. I'm trying to apply a geometric transform to meshes via a ve...
Arvell asked 8/11, 2022 at 2:54

2

Solved

Hello im trying to make a 2D wind shader, well lets say it doesnt work as quite I want to... (im completely clueless now) The shader is moving the bottom of the image too which I dont want to but I ha...
Partheniaparthenocarpy asked 6/11, 2022 at 14:29

5

Solved

In the Screen Space Shaders example, TextureRect nodes are used to apply shaders to the scene. If the TextureRect doesn't have a texture the shader won't work. I'm new to shaders. I'd like to know wh...
Locality asked 6/11, 2022 at 11:50

6

I am working on a 2D platformer game where I need to develop what seems should be a simple screen shader which turns the ocean dark as the coordinate y pixels during game play get "deeper" or more pos...
Ludivinaludlew asked 8/5, 2022 at 11:14

16

Solved

I have a file called definitions.gdshaderinc that contains the following: #define Number float and on another file called functions.gdshaderinc I have the following: #include "definitions.gdshaderi...
Polyester asked 19/10, 2022 at 18:47

4

Hello. I am currently messing with blender spaceship generator plugin, but the plugin's generated materials are using a few blender specifc visual shader nodes, and when you import them into godot, th...
Childers asked 29/10, 2022 at 7:0

2

I think you made another thread just like this, but the question isn't really clear. You can use a Spatial shader to remove the lighting. shader_type spatial; render_mode unshaded; This will have no...
Demos asked 28/10, 2022 at 14:0

6

I want my scene to look the same as it does in blender's shaded mode. I suspect the problem might be the sky orientation but i have no idea what value blender uses as default this is the first time i ...
Dimitri asked 24/10, 2022 at 21:57

1

I am stuck on this https://docs.godotengine.org Godot Tutorial for animating fish. I have finished the initial part where we created the fish and got the swim movement done. I am now trying to impleme...
Tetra asked 22/10, 2022 at 16:44

2

Solved

Hi all, I´m trying to create a water shader and I have a foam texture i want to animate but i have a problem when I try to modify the Y coordinate for it: COLOR = texture(foam_texture, UV + vec2(0.0...
Nada asked 21/10, 2022 at 10:46

2

I have an idea for a method of faking 3D shadows in 2D, but I'm struggling to implement it due to my lack of experience. I want to achieve this by manipulating sprites with a custom shader. TL;DR I ...
Cordula asked 16/10, 2022 at 10:56

2

Hello. I have two panoramic textures that I am trying to combine at runtime to create a texture for sky box. Either of them get mapped just fine when used in Panoramic Sky material, but when used in a...
Bridgeman asked 16/10, 2022 at 20:49

8

I have done Your first 3D Shader but failed at the your second 3D Shader tutorial because I don't know where to plug in those wave codes. (they don't show the final code). Can anyone follow that tut...
Murat asked 1/6, 2022 at 10:42

5

Ive got these duplicate billboard meshes with pixel art in 3D space and Id like to tweak the uv coordinates of them so that the pixels align. This can be done in blender like so: I figured I could ju...
Peninsula asked 22/9, 2022 at 0:37

6

So, I have a niche question, one I can't find a single resource on the internet for. I'd like to know how I can create a cylindrical-looking light beam line that can be manipulated along a spline. E...
Lozier asked 17/9, 2022 at 2:11

2

Solved

Hi all, new to shaders so please take it easy on me! I am trying to implement filters to simulate colour blindness. It should be a simple linear transformation, but for some reason the shader is out...
Islander asked 16/9, 2022 at 10:54

7

Solved

Below "uniform line" in shader gives "Expected datatype.-" error. struct points{ vec2 p[8]; }; uniform points pointsArray; Do I have syntax mistake?
Brien asked 15/9, 2022 at 12:25

3

Solved

This shader i wrote is suppose to take the background sample color provided by user, and make it transparent. It seems to work while in the editor but when i run it, the background color is not trans...
Beatrizbeattie asked 13/9, 2022 at 22:12

4

https://mediafiles.urlaubsguru.de/wp-content/uploads/2019/07/Oberpfaelzer-Wald_Mystische-Waelder-am-Goldsteig-im-Naturpark-Steinwald.jpg
Sarcoid asked 19/5, 2021 at 14:15

5

Solved

Hi, my goal is to write a shader for a smooth gradient. For example I would like to be able to color a sphere so that it's bottom is completely black and its top completely white, like this: My pro...
Labia asked 9/9, 2022 at 17:17

12

Solved

Hi, I was wondering if there is a way to access the screen-space normals in Godot 4.0. I assume there could be a way because I found the DEBUG_DRAW_NORMAL_BUFFER option in the Viewport class, which sh...
Monte asked 7/9, 2022 at 18:13

4

Solved

Im using godot 4. I have some billboards that are not drawing ontop of each other correctly and im not sure why. The sprites farther away from the camera are drawing ontop of the closer sprites. ...
Snitch asked 2/9, 2022 at 18:20

10

I want to create a plane of squares color of which I could manipulate. I was told that it can be done using vertex colors. I looked up bunch of tutorials but still can't quite get it. Example is on th...
Omidyar asked 30/8, 2022 at 16:1

© 2022 - 2024 — McMap. All rights reserved.