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
0
votes
0answers
50 views

convert ID3DXMatrixStack to DirectXMath

Is it right it convert ID3DXMatrixStack to DirectXMath like that: ...
1
vote
0answers
37 views

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 ...
3
votes
1answer
504 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
1answer
864 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
0answers
195 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:...