• <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 逛奔的蝸牛 閱讀(1034) 評論(0)  編輯 收藏 引用 所屬分類: OpenGL
            久久精品无码一区二区三区| 色综合久久久久综合体桃花网| 精品视频久久久久| 色播久久人人爽人人爽人人片aV| 2021国内久久精品| 久久婷婷五月综合色高清| 国产精品久久久天天影视香蕉| 模特私拍国产精品久久| 精品国产乱码久久久久久1区2区| 精品久久久久久无码人妻蜜桃 | 久久久这里只有精品加勒比| 亚洲人成精品久久久久| 国产精品久久久99| 精品人妻久久久久久888| 久久久久久久久久久免费精品| 欧洲人妻丰满av无码久久不卡| 无码8090精品久久一区| 亚洲国产精品久久66| 久久精品国产精品亚洲精品 | 无码AV波多野结衣久久| 久久久久无码精品| 国产一级持黄大片99久久| 中文字幕日本人妻久久久免费 | 中文字幕久久亚洲一区| 国产99久久精品一区二区| 色婷婷综合久久久久中文| 久久久久一级精品亚洲国产成人综合AV区 | 久久久久亚洲AV成人网人人网站| 伊人色综合久久| 国产精品久久久久久久久鸭 | 久久黄色视频| 久久久久无码专区亚洲av| 久久久青草青青国产亚洲免观| 国产精品久久久久9999| 久久99国产精品一区二区| 久久99国产综合精品| 成人久久精品一区二区三区| 国产精品久久久天天影视| 亚洲一区中文字幕久久 | 天堂无码久久综合东京热| 久久婷婷五月综合97色直播|