7,009 questions
Advice
0
votes
2
replies
31
views
Is optimization done at graphics pipeline creation time between stages?
The reason I'm asking this question is because I have cases in a vertex shader where I have:
layout (location = 0) out float3 outEyeSpacePosition;
layout (location = 1) out float2 out_tex_coords;
And ...
Advice
0
votes
0
replies
60
views
Webgl Threejs canvas performance optimization
Hi guys i am trying to make a website with 3d model in it and you can apply patterns designs texts stickers on the model i am doing it with canvas atlas which is every assets renders inside the oen ...
0
votes
0
answers
69
views
Drawing a color wheel with fxc shader in a WPF app
I want to achieve something like this with fxc shader in a WPF application.
So far, with the below hlsl (High-Level Shading Language) code, I managed to produced this picture:
The problem is that I ...
1
vote
0
answers
104
views
Unable to render sprites in batches / instances using SDL3 GPU API and Odin. SSBO is not available to shader
I am new to graphics in general, so I am trying to learn from others.
After drawing a triangle, a quad and then a sprite on top, I have been trying to get a batch of them on screen using instancing.
...
2
votes
1
answer
142
views
Ursina Engine Shaders MacOS
I have freshly installed ursina in a virtual environment. I am trying to set up a basic scene with some lighting:
from ursina import *
class Pivot(Entity):
def update(self):
self....
0
votes
0
answers
63
views
RenderingServer cannot access global shader params
in Godot 4.4.1 I'm trying to access shader variables in code to do some math for my game. However, Even though I have set these shader parameters in global/shaders in project settings they don't show....
1
vote
2
answers
138
views
GLSL shader not showing anything in scene in THREE.js - why?
I'm trying to make my own shader for a THREE.js project I'm working on, and I wanted to make a GLSL shader as part of it for one of the meshes in my scene. However, despite writing very basic code for ...
0
votes
1
answer
191
views
I'm trying to use shaderc to compile a shader but keeps throwing an error that doesn't even seem relevant to my shader code
I'm on Linux and I am trying to compile basic shaders for bgfx using shaderc.
My Compile Lines:
shaderc -f ./vs_triangle.sc -o vs_triangle.bin --type vertex --platform linux --profile spirv --...
-2
votes
1
answer
57
views
Unity - Shader Graph - Channel Mixer [closed]
I started learning Unity and Shader Graph. Right now I try to understand, how the Channel Mixer is working internally.
I put in a color R 50,G 100,B 150 and the configuration on the output-R channel ...
0
votes
0
answers
137
views
How would I resolve this redefinition error in HLSL, despite not redefining anything?
I am currently learning how to write shaders in Unity, as the Unity environemt is most comfortable for me to use.
I want to create a procedural terrain, and currently trying to light it using ...
0
votes
0
answers
72
views
Flutter shaders: aurora points blending
I have an application that displays the northern lights on a map.
I receive a lot of points that need to be rendered (2000+ points).
Here’s what the final result should look like:
Since this puts a ...
0
votes
0
answers
60
views
Why is my shader's linear map range function not smooth?
I am trying to port a Blender shader to WGSL. My plan is to port over every node I need as a WGSL function (unless the node already has an equivalent in WGSL). Currently, I am trying to create an ...
1
vote
0
answers
83
views
How to set the default texture for a reuseable shader?
I'm making a small space shooter game to learn unity, and I want to use shaders so that the player and the enemies flash white whenever they're hit. However I don't know how to set the default texture ...
1
vote
1
answer
102
views
Black screen when using GL3 (OpenGL) with Maven and JOGL
I am trying to begin working with OpenGL by drawing a quad with the simplest of shaders, but when using GL3 capabilities, I just get a black screen. I wasn't able to really debug this because (a) I ...
1
vote
1
answer
85
views
Unexpected "does not contain #version" error adding basic shader to Ursina/Panda3D
My game project is built in Ursina, which is just Panda3D under the hood with some convenience functions.
I've tried adding a basic glsl vertex and fragment shader to a test file I have, and every ...