• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會(huì)很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::
            Fog:
            The amount of the fog color mixed with the geometry varies with the distance of the geometry from the camera origin
            glEnable(GL_FOG);
            glFogfv(GL_FOG_COLOR, fogColor);
            // GL_FOG_START and GL_FOG_END only for GL_LINEAR.
            glFogf(GL_FOG_START, 5.0f);
            glFogf(GL_FOG_END, 30.0f);
            glFogi(GL_FOG_MODE, GL_LINEAR); // Which fog equation to use.

            glHint(GL_FOG_HINT, GL_NICEST); // 計(jì)算方式.

            // GL_EXP, GL_EXP2: 需要fog density
            glFogF(GL_FOG_DENSITY, 0.5f);
            d: fog density.
            c: (z) the distance in eye coordinates from origin to fragment being fogged.
            c: is the distance of the fragment from the eye plane.

            Density: 0.5f
            The parameter GL_FOG_START specifies how far away from the eye fogging begins to take effect, and GL_FOG_END is the distance from the eye where the fog color completely over- powers the color of the object(如果再遠(yuǎn), 物體完全被fog color給遮蓋).

            Regardless of the fog mode, f is clamped to the range [0,1] after it is computed. Then, if the GL is in RGBA color mode, the fragment's color Cr is replaced by

            Fog Coordinates: For example, you want to elevation to play a role, lending to volumetric fog effects.
            void glFogCoordf(GLfloat fFogDistance);
            glFogi(GL_FOG_COORD_SRC, GL_FOG_COORD);

            return to OpenGL-drived fog effects:
            glFogi(GL_FOG_COORD_SRC, GL_FRAGMENT_DEPTH);
            posted on 2009-05-24 04:28 逛奔的蝸牛 閱讀(1028) 評(píng)論(0)  編輯 收藏 引用 所屬分類: OpenGL
            久久久久国产精品三级网| 精品国产VA久久久久久久冰| 漂亮人妻被黑人久久精品| 久久综合给合久久狠狠狠97色69| 99精品国产综合久久久久五月天| 91久久婷婷国产综合精品青草| 国产免费久久精品99久久| 久久中文字幕视频、最近更新| 久久亚洲日韩精品一区二区三区| 久久精品九九亚洲精品| 国产A三级久久精品| 色综合久久久久网| 久久狠狠爱亚洲综合影院| 欧美与黑人午夜性猛交久久久| 久久精品国产亚洲精品2020| 久久涩综合| 中文字幕亚洲综合久久| 中文字幕成人精品久久不卡| 久久精品国产免费观看三人同眠| 91精品久久久久久无码| 18岁日韩内射颜射午夜久久成人| 久久99精品国产99久久6| 99久久精品这里只有精品| 亚洲国产精品久久久天堂| 久久久亚洲欧洲日产国码是AV| 久久精品国产免费一区| 久久综合综合久久97色| 97精品国产97久久久久久免费| 久久精品综合一区二区三区| 狠狠狠色丁香婷婷综合久久俺| 久久99精品久久久大学生| 亚洲午夜精品久久久久久app| 久久久99精品成人片中文字幕| 粉嫩小泬无遮挡久久久久久| 亚洲午夜久久久影院| 久久久久久久97| 国产精品99久久久精品无码| 亚洲午夜久久久久久久久电影网 | 国产精品久久新婚兰兰| 久久国产精品免费一区二区三区| 久久久噜噜噜久久中文福利|