hlsl
Understanding texture registers and samplers with optimising in mind
I have 3 different xna effects, one开发者_StackOverflow中文版 called initialise, one called iterate and one called finalise.[详细]
2023-02-20 19:09 分类:问答directx/HLSL what are input and output semantics for?
i was wondering what those input and output semantics in HLSL are for? i.e. why do i have to write that TEXCOORD0;[详细]
2023-02-20 03:51 分类:问答HLSL: predefined variables
does HLSL have predefined variables for common matrices like GLSL has? i am looking for gl_Proje开发者_JAVA技巧ctionMatrix and gl_ModelViewMatrix respectively?[详细]
2023-02-18 01:57 分类:问答DirectX HLSL Include Directive Doesn't Work
The document: http://msdn.microsoft.com/en-us/library/dd607349(v=vs.85).aspx states that #include \"foobar.fx\" will look for that file in the same directory as the current effect file.[详细]
2023-02-16 22:00 分类:问答Identify mip map levels by coloring different screen areas in GLSL
I don\'t wish to bombard this post with code. I\'ve got a main file, fragment shader and a vertex shader file.[详细]
2023-02-16 10:58 分类:问答Compatibility between DirectX 9 and DirectX 10 shaders
I am a beginner to game development and as I am used to programming in C# I decided to go for XNA. I\'ve been playing around with it for a while and now I am learning the basics of HLSL shaders, I hav[详细]
2023-02-15 02:59 分类:问答Can I generate a random number inside a pixel shader?
I\'m trying to write a very simple shader that adds random sparkle to applicable objects. The way I\'d like to do this is by adding a random shade of white (R = G = B) to the pixel value within the pi[详细]
2023-02-14 04:46 分类:问答Use shaders to compare images
Do you know how can I write simple shader (hlsl) to compare two images ? I want to get on result percent of similarity ? Is it posible to use shaders in this case ? Can I for example count red pixels[详细]
2023-02-13 10:59 分类:问答Using unsigned byte textures with DirectX 10 / 11
I am attempting to do some processing in the pixel shader on a texture. The data for the texture is coming from a memory chunk of 8 bit data. The problem I am facing is how to read the data in the sha[详细]
2023-02-13 00:43 分类:问答HLSL sampler inside struct possible?
I\'m using the DirectX 9 effect framework. I\'d like to create a struct which contains a sampler like so:[详细]
2023-02-12 07:44 分类:问答
加载中,请稍侯......