Skip to main content

Questions tagged [hlsl]

HLSL (High Level Shader Language) is a proprietary shading language developed by Microsoft for use with the Microsoft Direct3D API.

Filter by
Sorted by
Tagged with
2 votes
0 answers

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'...
Edziju's user avatar
  • 319
1 vote
0 answers

Shader for 1-bit color palette + a VFX ramp

I'm making a Unity game with a "1-bit" color palette, a la Downwell - the vast majority of the screen will end up being in black and white, but unlike true 1-bit graphics, some highlights ...
crass_sandwich's user avatar
5 votes
1 answer

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 ...
Misza's user avatar
  • 231
4 votes
1 answer

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 ...
bartosz.baczek's user avatar
2 votes
0 answers

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:...
d7samurai's user avatar
  • 121