by MisanthropX-
on 11/03/2008 18:15, 1 messages, last message: 11/03/2008 22:25, 1056 views, last view: 03/31/2024 09:50 |
i try to do a night vision shader for me
and i found a few things from i can script
but its somehow too hard for me o.o
i got this :
shader 0 "invert" [ @fsvs END ] [ @fsps SUB result.color, 1, sample; END ]
shader 0 "gbr" [ @fsvs END ] [ @fsps MOV result.color, sample.yzxw; END ]
shader 0 "bw" [ @fsvs END ] [ @fsps DP3 result.color, sample, 0.333; END ]
and:
shader 0 depthfxsplitworld [
@vpstart
TEMP z;
DP4 z.x, -opos, state.matrix.modelview.row[2];
MAD result.texcoord[0], z.x, program.env[0], program.env[1];
END
] [
@fpstart
TEMP ranges;
MOV ranges.x, fragment.texcoord[0];
FRC ranges.yzw, fragment.texcoord[0];
MAD result.color, ranges.yzxw, { -0.00390625, -0.00390625, 0, 0 }, ranges;
END
]
that could fit into that what i want
somone an idea?
|
Here's a fairly simple one that looks a little like night vision.
shader 0 "nvision" [ @fsvs END ] [ @fsps DP3 result.color.g, sample, 0.333; MOV result.color.r, 0.0; MOV result.color.b, 0.0; END ]
reply to this message
|