Shaders Questions
6
Is the geometry shader available at the moment? I thought I saw somewhere that someone had used it, but I may be wrong...
Vermicelli asked 4/7, 2021 at 4:54
8
Does anyone know how to get a 16bit texture to displace vertices in the vertex shader?
Is it something I can set in the shader from GDScript?
I thought I could maybe store one byte in the red channel...
Anett asked 2/7, 2021 at 9:41
8
Is this the proper way to set a textures normal map in the fragment shader?
NORMALMAP = texture(grassNORM, UV / grassScale).rgb * vec3(2.0, 2.0, 1.0) - vec3(1.0, 1.0, 0.0);
When I use set NORMALMAP ...
Adumbrate asked 2/7, 2021 at 12:22
3
I'm making a 3d fixed camera isometric 3rd person voxel game. I'm working on a shader that hides all voxels above the player.
Problem is that when I set the alpha for those voxels my transparent water...
Rocketry asked 2/7, 2021 at 18:46
3
I'd like to update small parts of a large texture in my shader, I thought "glTexSubImage" might be what I should use but now I'm not sure. The texture is a heightmap and I'd like to edit a few pixels ...
Nicety asked 30/6, 2021 at 22:31
2
I'm working on a game with optional PS1-style graphics, and I'm applying this shader to a ShaderMaterial on all my meshes. Because the PS1 style is meant to be optional, I need an easy way to disable ...
Leicestershire asked 29/6, 2021 at 20:7
5
I've gota Spatial shader attached to a terrain object.
I don't understand how this code works:
ALBEDO = vec3(length(VERTEX)/float(100), 1.0, 1.0);
It appears to change the color of the parts of my...
Matriarch asked 29/6, 2021 at 18:22
4
I created a new CSGMesh Node in my 3D godot scene with the following Script attached:
extends CSGMesh
func _ready():
var material = SpatialMaterial.new()
material.vertex_color_use_as_albedo = t...
Sevilla asked 24/6, 2021 at 2:57
2
Hi everyone! I rewrote a two pass shader from SHADERTOY, and seems it's working. Each of the passes. But it works seperatly. I can claer previous pass and get same result. Am trying to set alpha(it wa...
Ingold asked 24/6, 2021 at 5:14
18
I'm making conveyor belts to test out a game idea. Straight belts are animated with moving UV.y with a scalar value and TIME and I've gotten them to work just fine. I have been zoning out trying to fi...
Triacid asked 19/4, 2021 at 15:44
7
So if I write a shader and it's great. But how can I activate it and and turn it off. Can I attach the shader onto the existing material as second pass, then detach it during script?
Aetolia asked 5/6, 2021 at 16:21
5
Hello, I am trying to optimise one of my shaders by grabbing the shaders previous result, from the viewport, and putting it back into a sampler2D on the shader. The shader will then simply return pixe...
Interdenominational asked 4/10, 2020 at 16:40
9
While exporting, I got this error:
Cannot open icon file 'C'
Fatal error: Unable to set icon
Biplane asked 1/6, 2021 at 17:4
10
I have the a piece of shader code.
vec3 getnorm(vec3 pos,float time){
vec3 newpos3=pos;
vec3 newpos1=pos;
vec3 newpos2=pos;
newpos2.z+= -0.01;
newpos2.x+= 0.01;
newpos3.z+= 0.01;
newpos3....
Aground asked 29/5, 2021 at 17:37
5
Source text
I'm using a 2d shader over a Polygon2d.
When I tried to use the UV or the TEXTURE_PIXEL_SIZE, they are always zero.
I suppose this can be explained because I don't set a texture directly ...
Roulade asked 18/5, 2021 at 18:6
6
Hello, I'm trying to dive into learning shaders and am trying to create a shader on a colorRect that masks out a texture(sampler2d) (which I managed). Now I want to be able to resize the texture so th...
Lorant asked 20/5, 2021 at 11:34
7
Hi, I need to match the player's boots to the terrain, grass, sand, etc.
How could you achieve that effect with Shaders?
pd: I don't know what label to put, since the shaders option doesn't appear
Freehand asked 17/5, 2021 at 3:16
4
Is there a way to cast a shadow based on a texture/face's albedo? For example, cast a checkered pattern on the wall when given:
Spalding asked 6/5, 2021 at 10:1
3
Hi,
On last weeks the project I'm working with a friend don't run properly on godot. The game freezes on logo splash screen.
I think that can be because the VGA, I'm using a GTX 1660, and maybe it o...
Rebellion asked 9/4, 2021 at 1:19
7
The title is probably confusing, so I will try to explain it as well as I can.
In out game we use black sprites with low opacity as shadows. However, when multiple "shadows" stack on top of each othe...
Alvie asked 11/10, 2020 at 9:11
6
Hi everyone ! I would like to make a dark room.It means only darkness in room,outside still light.For problem make a night all map, i can do it by Canvas Modulate.But it only makes dark full map.Anyon...
Lemire asked 4/4, 2021 at 14:17
3
I downloaded a fish model the materials of which had to be changed in blender so it works, then i imported it as another scene into godot so that i can edit it, but seems like i cannot edit the shader...
Lexicographer asked 5/4, 2021 at 12:18
3
Hi guys I've been trying to change colors using shaders in godot on the tap of a key.
Say I want to make a time stop with the SPACE key or the 8 button for example where the time stop has all of the ...
Crinite asked 3/4, 2021 at 19:47
3
I'm working on a grand strategy game map and would like a way to render fairly smooth borders between provinces like in Paradox Interactive's Imperator: Rome below.
It seems that they use Unsigned ...
Progressionist asked 30/3, 2021 at 6:21
5
Hey, so I don't know how to change the color from black to something else. I tried clicking on the black to see if anything would pop up that would allow me to change color and nothing is working.
Ho...
Whack asked 7/3, 2021 at 21:7
© 2022 - 2024 — McMap. All rights reserved.