Questions tagged [hlsl]
HLSL (High Level Shader Language) is a proprietary shading language developed by Microsoft for use with the Microsoft Direct3D API.
4 questions
2
votes
0
answers
104
views
Compute shader based Particle System
I'm experimenting with compute shaders and wrote the particle system.
The emit shader now takes particle data from the constant buffer because I don't have randomizing functions implemented yet. That'...
5
votes
1
answer
3k
views
Unity surface shader to blend between adjacent tiles
I'm experimenting in Unity with a tile-based game with crisp 32x32 tile textures and pixel perfect camera. I did not like the results coming from Unity's default ...
4
votes
1
answer
1k
views
Optimizing HLSL shader
I am trying to optimize my vertex and pixel shader code. Do you have any suggestions what could I possibly do to improve performance? I am using it to draw textured cuboids, and if there are many ...
2
votes
0
answers
233
views
HLSL Shader Model 4: Is there a way to avoid pixel shader computing all code paths?
I have a pixel shader that needs to output either a plain colored pixel or a texel sampled from one of three textures - selected by a switch statement operating on an index fed in by the vertex shader:...