Ignore:
Timestamp:
08/29/08 15:46:36 (16 years ago)
Author:
mattausch
Message:

found bug with lod levels
made env file for shaders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/globillum.cg

    r2882 r2884  
    11//////////////////// 
    2 // Screen Spaced Ambient Occlusion shader 
     2// SSAO + color bleeding shader 
    33// based on shader of Alexander Kusternig 
    44 
    5 #define NUM_SAMPLES 10 
    6 //#define NUM_SAMPLES 16 
    7  
    8 // rule of thumb: approx 1 / NUM_SAMPLES 
    9 //#define SAMPLE_INTENSITY 0.15f 
    10 #define SAMPLE_INTENSITY 0.22f 
    11  
    12 #define AREA_SIZE 7e-1f 
    13 //#define AREA_SIZE 3e-1f 
    14 #define VIEW_CORRECTION_SCALE 0.3f 
    15 //#define VIEW_CORRECTION_SCALE 0.5f 
    16 #define DISTANCE_SCALE 1e-6f 
    17  
    18 #define ILLUM_INTENSITY 5e-1f; 
     5#include "../shaderenv.h" 
    196 
    207 
     
    8370 
    8471                //sample noisetex; r stores costheta, g stores sintheta 
     72                //float2 mynoise = tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy * 2.0f - 1.0f; 
    8573                float2 mynoise = tex2D(noiseTexture, IN.texCoord.xy * noiseMultiplier).xy; 
    8674 
     
    210198         
    211199        OUT.illum_col = (col + illum) * ao; 
     200        OUT.illum_col.w = col.w; 
    212201 
    213202        return OUT; 
Note: See TracChangeset for help on using the changeset viewer.