|
2 registered members (SBGuy, AndrewAMD),
739
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Lightmap Shader
[Re: A.Russell]
#84783
08/09/06 11:05
08/09/06 11:05
|
Joined: Dec 2000
Posts: 4,608
mk_1
Expert
|
Expert
Joined: Dec 2000
Posts: 4,608
|
Quote:
add r0, t0, t1
This line just adds texture1 (shadowmap) to texture0 (diffuse map). What you need to do is to multiply with the shadowmap: Code:
mul r0, t0, t1;
Anyway wiki features a little pixelshader tutorial using assembler.
Your code is missing albedo and specular though. Maybe you should try hlsl
|
|
|
|
|
|