• <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 逛奔的蝸牛 閱讀(1028) 評論(0)  編輯 收藏 引用 所屬分類: OpenGL
            老色鬼久久亚洲AV综合| 久久久久久午夜成人影院 | 久久精品一区二区三区AV| 少妇被又大又粗又爽毛片久久黑人 | 久久免费线看线看| 久久久久人妻精品一区三寸蜜桃| 色99久久久久高潮综合影院| 亚洲中文字幕无码久久精品1| 看久久久久久a级毛片| 久久男人AV资源网站| 欧美一区二区三区久久综| 狠狠色丁香婷婷综合久久来来去| 久久久久久国产a免费观看黄色大片 | 青春久久| 51久久夜色精品国产| 久久精品国产亚洲精品2020| 久久久久无码专区亚洲av| 精品久久久久久中文字幕人妻最新| 久久久久久A亚洲欧洲AV冫| 色综合久久综合中文综合网| 亚洲国产成人久久精品99| 久久96国产精品久久久| 亚洲va国产va天堂va久久| 少妇久久久久久被弄到高潮 | 日产精品99久久久久久| 亚洲午夜福利精品久久| 国产精品女同一区二区久久| 国产午夜免费高清久久影院| 久久精品人人做人人爽97| 亚洲愉拍99热成人精品热久久 | 久久精品国产亚洲av麻豆小说| 精品久久久一二三区| 久久综合视频网站| 色诱久久av| 久久天天躁夜夜躁狠狠躁2022| 久久亚洲国产精品123区| 久久精品国产福利国产琪琪| 精品国产91久久久久久久a | 色综合久久久久久久久五月| 亚洲中文久久精品无码| 噜噜噜色噜噜噜久久|