PDA

View Full Version : Generally...how bad is this?


Oniram
12-03-2010, 02:12 PM
Hey everyone, ive been workin on putting together a shader that can be instanced for the easy plug-in ability for a project im working on. here's the thing.. this shader has 69 instructions.. the shader includes the following:

Diffuse lerped with reflection
Spec
Gloss
Normal + Tileable Normal

im getting into the red zone now and im wondering how cost effective this will be, as i planned to use this shader on almost everything.. in the images is pretty much just bsps.aside from the few meshes on the left.


also ive included a screen of the material

cholden
12-03-2010, 02:32 PM
Seems fine to me. I've seen more complex parents on projects.

sprunghunt
12-03-2010, 02:44 PM
Hit the little skull button at the top of the material editor. It'll delete expressions you're not using.

Oniram
12-03-2010, 03:49 PM
cholden: ah ok. generally i thought than anything in the red spectrum is bad, im just hoping that in excess it wont have too much of an effect on performance.

sprunghunt: thx.. didnt know that. :D

Xoliul
12-04-2010, 05:13 AM
The color changes depending on if your lighting is baked or not, and if it's being affected by dynamic lights, so keep that in mind. I think you haven't baked it yet, so don't trust the color, it'll probably become green once the lighting is baked.

Oniram
12-04-2010, 08:07 AM
XD the lighting is baked.. but then again this is set to preview quality.. dont know if that makes a difference, and also in the final layout there should be walls n things covering a lot with shadow so i think it should be ok. thx all.