hlsl
First tackling Shaders. Having initial confusion with a DirectX Tutorial
I\'m following a DirectX Tutorial with very little knowledge of C++ on Visual C++ 2010. I know enough to follow/understand everything up to this far, but now I\'m trying to include a HLSL shader. I ha[详细]
2023-03-22 04:17 分类:问答How do I set the value of a HLSL uniform variable with SlimDX?
I haven\'t been able to find the documentation for this, but it\'s probably prett开发者_C百科y simple.I have a pixel shader which needs variables to be updated.The only thing I\'ve come close with is[详细]
2023-03-18 10:17 分类:问答Downsampling an image without "dancing" pixels
Say I wanted to downsample an image in realtime (1280x720) to a very small scale (16x16) and not suffer from \"dancing\" pixels when the image moves, which technique would I use?[详细]
2023-03-18 02:17 分类:问答HLSL uniform variables vs constant buffers
What is the difference between uniforms and constant buffers? Are they completely separate or can the uniforms be seen as in a constant buffer?In other words, if you want to set a uniform, do you nee[详细]
2023-03-17 11:18 分类:问答Sequence of transformations: Projective Texturing (HLSL)
When I was reading this article on Projective Texturing (9.3.2) on nvidia, I came across this graph: (source: nvidia.com)[详细]
2023-03-17 02:31 分类:问答Loading and using an HLSL shader?
I\'ve been looking everywhere and all I can find are tutorials on writing the shaders. None of them showed me how to incorporate them into my scene.[详细]
2023-03-12 09:46 分类:问答How do you get the output of a HLSL computation?
I would basically like to screen开发者_JAVA技巧 capture a GPU result into a bitmap file using .NET. I would probably use XNA and my workflow would be something like:[详细]
2023-03-12 09:05 分类:问答Pixel Shader performance on xbox
I\'ve got a pixelshader (below) that i\'m using with XNA. On my laptop (crappy graphics card) it runs a little jerky, but ok. I\'ve just tried running it on the xbox and it\'s horrible![详细]
2023-03-08 04:38 分类:问答Issue with alpha in 2d lighting shader in XNA 4.0
I\'m currently learning HLSL with XNA, I figured the best place to start after tutorials would be some simple 2D shaders. I\'m attempting t开发者_高级运维o implement a simple lighting shader in 2D.[详细]
2023-03-06 11:22 分类:问答how to add pcf to shadow maps
I found this link which explains a little about pcf shadow mapping. I looked through the code sample provided and I cannot work out what the offset array is. I\'m assuming it is an array of float2 and[详细]
2023-03-04 04:36 分类:问答