• <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
            欧美精品一区二区精品久久| 69国产成人综合久久精品| 色综合久久综精品| 国产综合成人久久大片91| 久久人人爽人人澡人人高潮AV | 久久国产乱子伦精品免费强| 伊人热人久久中文字幕| 久久亚洲中文字幕精品一区| 波多野结衣AV无码久久一区| 久久国产精品成人免费 | avtt天堂网久久精品| 久久人人爽人爽人人爽av| 精品乱码久久久久久久| 国产精品99久久不卡| 熟妇人妻久久中文字幕| 色综合久久天天综线观看| 国产午夜福利精品久久2021 | 久久人人爽人人爽人人AV东京热| 国产精品免费久久| 99久久99这里只有免费的精品| 久久夜色精品国产噜噜亚洲a| 99久久国产主播综合精品| 久久九九精品99国产精品| 18岁日韩内射颜射午夜久久成人| 天天综合久久久网| 久久av无码专区亚洲av桃花岛| 亚洲欧美成人久久综合中文网| 久久国产高潮流白浆免费观看| 99久久国产宗和精品1上映| 狠狠久久综合伊人不卡| 久久精品国产免费一区| 久久午夜无码鲁丝片| 亚洲综合熟女久久久30p| 无码国内精品久久综合88| 亚洲国产精品综合久久网络| 久久久久久久综合日本| 欧美久久久久久午夜精品| 久久久噜噜噜久久| 亚洲午夜久久久| 亚洲AV日韩精品久久久久| 日产精品99久久久久久|