18 lines
344 B
PostScript
18 lines
344 B
PostScript
#include "common.h"
|
|
#include "sload.h"
|
|
|
|
float4 pda_params;
|
|
|
|
float4 main( p_flat I ) : SV_Target
|
|
{
|
|
//f_deffer O;
|
|
|
|
// diffuse
|
|
float3 D = tbase (I.tcdh); // IN: rgb.a
|
|
D = SRGBToLinear(D);
|
|
|
|
float brightness = pda_params.x;
|
|
float4 color = float4(D.rgb,1);
|
|
color *= float4(brightness,brightness,brightness,brightness);
|
|
return color;
|
|
} |