• <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>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::
            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); // 計算方式.

            // 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(如果再遠, 物體完全被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 逛奔的蝸牛 閱讀(1024) 評論(0)  編輯 收藏 引用 所屬分類: OpenGL
            国产午夜免费高清久久影院 | 亚洲精品无码久久毛片| 99久久国产热无码精品免费| 99久久精品免费看国产免费| 伊人久久大香线蕉无码麻豆| 久久婷婷五月综合97色| 91久久福利国产成人精品| 亚洲午夜久久久| 亚洲一区二区三区日本久久九| 66精品综合久久久久久久| 久久久久国色AV免费观看| 久久久久高潮综合影院| 青青青伊人色综合久久| 少妇无套内谢久久久久| 亚洲狠狠综合久久| 久久精品人妻中文系列| 久久成人18免费网站| 久久精品免费全国观看国产| 久久超碰97人人做人人爱| 久久久久久久久66精品片| 亚洲国产精品一区二区久久hs | 国产精品成人99久久久久| 久久这里都是精品| 国产一级持黄大片99久久| 久久久午夜精品福利内容| 国产高潮国产高潮久久久91| 久久久久人妻一区精品色| 久久久久久曰本AV免费免费| 亚洲国产精品久久久久久| 久久亚洲日韩看片无码| 久久综合视频网| 色偷偷88欧美精品久久久| 欧美日韩精品久久久免费观看| 久久精品无码一区二区日韩AV| 国产成人精品久久一区二区三区| 色偷偷偷久久伊人大杳蕉| 久久人人爽人人爽人人片AV东京热| 色婷婷噜噜久久国产精品12p| 久久久精品久久久久特色影视| 国产精品永久久久久久久久久| 国产精品激情综合久久|