Skip to main content

Questions tagged [shadermodel3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
916 views

How to determine vertex index using Shader Model 3 or lower?

I need something like SV_VertexId (added in Shader Model 4) in HLSL shader to determine which vertex is currently handled. Unfortunatelly, I can compile only vs_3_0 or lower. The objective is to ...
therainycat's user avatar
3 votes
3 answers
1k views

Does passing uniform constants from technique into shader cause branches?

I am trying to find a way to organize my evergrowing number of shader techniques/functions (I am coding in sm_3.0). One way is to do this: ...
cubrman's user avatar
  • 1,551
4 votes
2 answers
10k views

How can I check for Shader Model 3 support?

Currently I am working on a 3D visualization app. A requirement of my app is that host's graphics card supports Shader Model 3. How can I check for Shader Model 3 support? I know that these versions ...
Synxmax's user avatar
  • 99
5 votes
1 answer
6k views

HLSL: Pack 4 values into 32 bit float

I can't find any useful information on packing 4 values into a 32 bit float in HLSL. Ideally, what I want to be able to do in HLSL is: ...
Olhovsky's user avatar
  • 3,519
9 votes
2 answers
3k views

How to implement SSAO in Shader Model 3/ DX9?

Ive read a few articles about SSAO, and i would like to implement it in to 3d engine at work, which runs on top of DX9. Can you give me an tips on getting the simplest implementation possible up and ...
Cubed2D's user avatar
  • 2,132