Category "hlsl"

Mesh getting cut off

I'm using DirectX 11. I'm trying to draw a Cube mesh to the screen but the bottom half is getting cut off. If I move the camera up/down the bottom half is still

Does unrolling a loop affect the accuracy of the computations within?

Summarized question Does unrolling a loop affect the accuracy of the computations performed within the loop? And if so, why? Elaboration and background I am wri

How to compile HLSL Shaders during build with Cmake?

I'm working on a d3d application and i would like to compile my .hlsl shaders during to build using cmake. I have no idea where to start. this is my current CMa

Is it possible to pass a parameter from a technique to a vertex/pîxel shader?

I modified some shaders in unity and I'm trying to modify one in Cryengine. Can I send a parameter when I call a vertex/geometry/pixel shader in the technique?

How to colour vertices as a grid (like wireframe mode) using shaders?

I've created a plane with six vertices per square that form a terrain. I colour each vertex using the terrain height value in the pixel shader. I'm looking f