Key Posted July 28, 2013 Posted July 28, 2013 Hello everyone. I've been trying to use lighting emitted from shaders, but so far nothing it's not working. I was attempting to follow Sizco's tutorial, and I'm using the shader which was provided. After I apply the shader in GTK-Radiant and compile the map, you can clearly see there is no light coming off of the brush's face. I was also looking at Rich Diesel's mapping guide, and I adapted some of the aspects from his provided shader as well. I tried using both, just straight up & unmodified (except for renaming stuff to use my own image), and neither worked. That's why I'm assuming it has nothing to do with the shader. The image is 256x256, completely one color, PNG format. Here is my shader: textures/krstation/light1{qer_editorimage textures/krstation/light1q3map_surfacelight 7500q3map_lightRGB 1.00 0.99 0.42q3map_backSplash 0.5 8 {map $lightmap } {map textures/krstation/light1blendFunc GL_DST_COLOR GL_ZERO } {map textures/krstation/light1blendFunc GL_ONE GL_ONEglowrgbGen identity }} Just as well, he's what the map looks like... you can see the image for the shader is appearing, however actual light is not. Just as a side note, the barely visible bit of light you may be able to see on the floor is from the other room's light carried over. Is there some other special instruction I am missing out on? I tried changing the brush types to func_group and applying the keywords, but it didn't seem to matter at all. Thanks!
Solution Szico VII Posted July 29, 2013 Solution Posted July 29, 2013 Did you add your custom shader file name to shaderlist.txt? Thats usually the number one most overlooked mistake! The game still reads the shader - hence why its glowing, but the compiler doesn't, so no light is calculated. Key likes this
Key Posted July 29, 2013 Author Posted July 29, 2013 *sigh... Thanks Szi, I guess I should have done a little more reading up on the other tutorials. If anyone else ever has this problem and made the same mistake I did, Eezstreet wrote an awesome tutorial on it right here: http://jkhub.org/tutorials/article/29-shaderlisttxt-and-its-purpose/ Thanks again!
Szico VII Posted July 30, 2013 Posted July 30, 2013 No worries, that's what we're here for. That and because @@Caelum is a slave driver.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now