Questions tagged [shader]
A shader is a program to perform calculations on geometry or pixel data in computer graphics.
shader
7,022
questions
0
votes
1
answer
25
views
Trouble with reading a noise texture in GLSL
I'm writing a Perlin noise terrain generator with p5js, following this tutorial. The app ran poorly so I decided to rewrite it with shaders, something i've never used before. I started by generating a ...
1
vote
1
answer
26
views
How do you add unique instances of a shader to multiple nodes in a scene? Godot 4
I have multiple "interactable" objects in my game all extend the InteractableBody class that sets some stuff up so the player can interact with the object. I am trying to add an outline ...
-2
votes
0
answers
29
views
Forge Minecraft Modding - Saturation Overlay [closed]
I'm newer to minecraft modding and I am trying to figure out how I can have a saturation effect overlayed on the player's screen. I want an item to trigger this effect so that on use the world looks ...
0
votes
0
answers
33
views
Why using 43758.54 for random? [closed]
I'm new to shaders. recently I'm studing some algorithm, and this number, 43758.54, appears many times in all sort of randomization with different accuracy. I'm wondering if there is something to ...
0
votes
1
answer
53
views
Normal map BG image for website, with fixed light source
I would like to be able to use normal maps in my site's background images. This CodePen example seems to be the best from all the implementations I've seen so far. It uses three.js to achieve the ...
0
votes
1
answer
15
views
When using points in ThreeJS there is a black background on each point if using depth writing
I have a scene where I use points, like so
<points ref={gPoints} position={position}>
<bufferGeometry attach="geometry">
<bufferAttribute
...
1
vote
1
answer
28
views
Unity3d, Single transparent object's drawing order is mixed up
So I'm using URP, lit materials.
I have this sandwich object with SINGLE fbx model with one submesh only. Sandwich is made in order of Bread - Tomato - Cheese - Ham - Lettuce - Bread
When opaque, it ...
0
votes
0
answers
77
views
+200
GLSL fragment shader Sine wave change the direction and color
I have glsl Fragment shader code need to change the line color, background color and, direction of the sine wave
eprecision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
...
0
votes
1
answer
17
views
Determine position of light relative to a tile in a Godot shader
I have a Godot CanvasItem shader that is assigned to the material of a specific tile in a TileMap. In the shader, I need to know the position of a light relative to the bottom of the tile.
I am ...
0
votes
1
answer
36
views
How do I handle a rotation texture of Vertex Animation Textures (VAT)?
I have vertex animation textures exported by Labs Vertex Animation Textures ROP in Houdini.
Now I want to use it in my own game made with Bevy (a game engine written in Rust), not Unity or UE.
I made ...
0
votes
1
answer
47
views
Vulkan compute shader synchronization
In my application I use a Compute Shader to elaborate data in a fast way. I dispatch a Compute Shader for each instance of my model. So for example, I have 30 instancies, I dispatch a Compute Shader ...
0
votes
1
answer
40
views
Outline Shader in object with multiple materials
I'm new with shaders, and I was watching a tutorial to add outlines to my model.
The tutorial was perfect, but I got a problem.
That shaders works with objects with one material, in my case, I have a ...
1
vote
1
answer
46
views
Some properties are missing in the DirectX 11 compared to the 9th
At the moment, I am porting the old code from the ninth version of DirectX to the newer, eleventh, and I have encountered some difficulties in finding analogues of existing properties and functions.
...
0
votes
1
answer
45
views
In Godot4 (3D), how to make objects close to the camera transparent for a camera but not for another?
I am working on a 2 player cooperative game. Both of them are on a ship together. One of them is the pilot and another shoots a turret on the ship. The problem is that I would like to make the ship ...
-1
votes
0
answers
40
views
Planetary rendreing in unity and shader performance
I'm doing a personal project in unity (URP) about generating a large entire planet that allows the player/viewer to approach the planet without loading and in a dynamic way (for example like in the ...