lightFullbrightF.glsl
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:0k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. /** 
  2.  * @file lightFullbrightF.glsl
  3.  *
  4.  * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
  5.  * $License$
  6.  */
  7. uniform sampler2D diffuseMap;
  8. vec3 fullbrightAtmosTransport(vec3 light);
  9. vec3 fullbrightScaleSoftClip(vec3 light);
  10. void fullbright_lighting()
  11. {
  12. vec4 color = texture2D(diffuseMap, gl_TexCoord[0].xy) * gl_Color;
  13. color.rgb = fullbrightAtmosTransport(color.rgb);
  14. color.rgb = fullbrightScaleSoftClip(color.rgb);
  15. gl_FragColor = color;
  16. }