what does it mean in tutorial: passing in a second noise texture
Asked Answered
B

5

0

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 says:
We do that by passing in a second noise texture.
Set this second uniform texture to another NoiseTexture with another FastNoiseLite.

I don't know how to set second one, I successed to set first one.
It seems just have one Shader Parameters, one Noise in Shader Parameters, I don't know how to make it two.
Please help me..

Godot version v4.0

Businessman answered 5/3, 2023 at 15:53 Comment(0)
B
0


This place can only set one Noise, but the tutorial wants me to create new one?

Businessman answered 5/3, 2023 at 15:56 Comment(0)
G
0

According to the tutorial, maybe wording my be a bit tricky, I don't know who decide to use such weird way sometimes, sentences & code line:

Instead we will rely on the NoiseTexture again to calculate normals for us. We do that by passing in a second noise texture.
uniform sampler2D normalmap;

the "uniform sampler2D" parameter in the shader code will/should create another slot in the inspector to put a texture into.

Glynas answered 5/3, 2023 at 16:41 Comment(0)
B
0

Solved

Businessman answered 6/3, 2023 at 16:14 Comment(0)
T
0

Do consider sharing your solution with others here, people might find this topic via search engines and I'm sure they'd appreciate to know how you solved it too. 🙂

Tabriz answered 6/3, 2023 at 18:48 Comment(0)
G
0

Tabriz Do consider sharing your solution with others here, people might find this topic via search engines and I'm sure they'd appreciate to know how you solved it too. 🙂

The most frustrating thing we could ever found with a search engine "hey guys, I've got an issue, please help me" then later "it's ok thanks, I figured it out (or any variation of it)", just that. Not funny when you encounter a similar issue years after (pretty much a true story).

Glynas answered 6/3, 2023 at 20:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.