Skip to main content

Questions tagged [hlsl]

A proprietary shading language developed by Microsoft for use with the Microsoft Direct3D API.

Filter by
Sorted by
Tagged with
18 votes
3 answers

How can I create a lighting effect like this?

This is the most beautiful 2d lighting I have ever seen, and I'd like to perform lighting like this too. How do I do it? I don't care about the physics or how the particles are simulated - I only ...
Mike's user avatar
  • 769
5 votes
1 answer

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
4 votes
2 answers

C# XNA - Sky Sphere Question

I have been banging my head against the wall trying to get a sky sphere to work appropriately in XNA 4.0. I have the sphere loading correctly, and even textured, but i would like something a little ...
Wade's user avatar
  • 173
20 votes
7 answers

Modern Shader Book? [closed]

I'm interested in learning about Shaders: What are they, when/for what would I use them, and how to use them. (Specifically I'm interested in Water and Bloom effects, but I know close to 0 about ...
1 vote
1 answer

Porting an HLSL 3.0 shader to 2.0?

I have a couple of .fx files from a Shader-Based 2D Shadows example. I want to utilize the same kind of technique with XNA 4.0's Reach profile, which if I understand correctly needs to have HLSL 2.0 ...
Christopher Horenstein's user avatar
9 votes
3 answers

Very slow direct3D texture sampling

So I'm writing a small game using Direct3D 9 and I'm using multitexturing for the terrain. All I'm doing is sampling 3 textures and a blend map and getting the overall color from the three textures ...
dotminic's user avatar
  • 1,627
64 votes
6 answers

What are the pros and cons of HLSL vs GLSL vs cg? [closed]

What are the pros / cons of the three?
Z_guy's user avatar
  • 751
13 votes
3 answers

HLSL Translucent Plastic Shader

I'm trying to produce a shader to replicate a white plastic object with a colored light inside. Either by having a shader that will be translucent and if I put a light inside the object the light will ...
Tristan's user avatar
  • 315
30 votes
12 answers

What are some good resources for learning HLSL? [closed]

The last time I tried learning HLSL, I made a few shaders and mostly understood what I was doing, but I still felt like I was stumbling in the dark. Most of what I learned I got from various blog ...

10 11 12 13