Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 4:18:42 PM (18 years ago)
Author:
stefalie
Message:

mountain_lake: changed shader file

Location:
data/branches/atmospheric_engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/branches/atmospheric_engine/shaders/mapped_water.frag

    r3912 r3918  
    1111uniform sampler2D depthMap;
    1212uniform float kShine;
     13uniform float shineStrength;
     14uniform float reflStrength;
     15uniform float kRefraction;
    1316uniform vec4 waterColor;
    1417
     
    1619{
    1720        const float kDistortion = 0.015;
    18         const float kRefraction = 0.009;
    1921
    2022        vec4 distOffset = texture2D(dudvMap, normCoords.xy) * kDistortion;
     
    5052        vec4 specular = vec4(pow(intensity, kShine));
    5153
    52         gl_FragColor = refractionColor + reflectionColor + 0.8 * specular;
     54        gl_FragColor = refractionColor + reflStrength * reflectionColor + shineStrength * specular;
    5355}
  • data/branches/atmospheric_engine/worlds/mountainlake.oxw

    r3916 r3918  
    3737      <watersize>1000,1000</watersize>
    3838      <wateruv>9</wateruv>
    39       <waterflow>0.02</waterflow>
    40       <lightpos>50,460,30</lightpos>
     39      <waterflow>0.04</waterflow>
     40      <lightpos>50,460,300</lightpos>
    4141      <!--<lightpos>50,460,300</lightpos>-->
    42       <shininess>40</shininess>
    43       <watercolor>0.0, 0.0, 0.2</watercolor>
     42      <shinesize>8</shinesize>
     43      <shinestrength>0.4</shinestrength>
     44      <reflstrength>0</reflstrength>
     45      <watercolor>0.1, 0.4, 0.4</watercolor>
    4446      <waterangle>0</waterangle>
     47      <refraction>0.009</refraction>
    4548    </MappedWater>
    46 
     49    <SkyBox>
     50     <name>Sky</name>
     51     <Materialset>pictures/sky/desert</Materialset>
     52     <Size>10000</Size>
     53    </SkyBox>
    4754</WorldEntities>
    4855
     
    6572  </LightManager>
    6673
    67         <AtmosphericEngine>
     74        <!--<AtmosphericEngine>
    6875                <WeatherEffect>
    6976                        <FogEffect>
     
    8592
    8693                </WeatherEffect>
    87         </AtmosphericEngine>
     94        </AtmosphericEngine>-->
    8895
    8996</WorldDataFile>
Note: See TracChangeset for help on using the changeset viewer.