![]() ![]() ![]() Now I have around 120 specific RGB values that I want the shader to ignore and not add the lighting color to it, just return the input color. This contains a greyscale pre lit texture that I just use additive blending with the given texture to add basic lighting. What I need to do is pass a light texture to the shader. This is all 2D, using shader model 3.0, HLSL, using XNA 4.0 framework in C#, and SpriteBatch for drawing. I originally had some shaders written that worked for XNA 3.1, but after converting to XNA 4.0 they would no longer compile due to instruction counts, flow control issues, etc and I cannot get a rewritten version to work. I am stuck on trying to solve this problem. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |