• <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>
            隨筆 - 505  文章 - 1034  trackbacks - 0
            <2012年5月>
            293012345
            6789101112
            13141516171819
            20212223242526
            272829303112
            3456789


            子曾經曰過:編程無他,唯手熟爾!

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 914430
            • 排名 - 14

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            pdf 看起來麻煩,還是html看起來方便。pdf gold這個軟件不錯,能編輯pdf文件,增加書簽,嘿嘿,這樣子就不用每次打開都要先找找上次看到哪兒了。

            以下內容摘自RenderMonkey Documentation.pdf

            Predefined Variables

            RenderMonkey provides a set of predefined variables for added shader development
            convenience. Such variables will display an appropriate tool tip (Predefined Variable) if
            the mouse hovers over them. Predefined variables are shader constants whose values get
            filled in at run-time by the viewer module directly at every frame. You cannot modify the
            values directly through the same user interface that you can use to edit other variables of
            similar types. A properly flagged predefined variable will be denoted in the workspace
            tree view with a symbol over the nodes icon. For example:
            RenderMonkey provides this set of predefined variables for your convenience:

            Time

            "Time0_X"
            Provides a floating point time value (in seconds) which repeats itself based on the
            “Cycle time” set in the RenderMonkey Preferences dialog. By default this “Cycle
            time” is set to 120 seconds. This means that the value of this variable cycles from
            0 to 120 in 120 seconds and then goes back to 0 again.
            "CosTime0_X"
            This variable will provide the cosine of Time0_X.
            "SinTime0_X"
            This variable will provide the sine of Time0_X.
            "TanTime0_X"
            This variable will provide the tangent of Time0_X.
            "Time0_X_Packed"
            This variable will pack the above xxxTime0_X variables into a 4 component
            floating point vector.
            Example: float4(Time0_X,CosTime0_X,SinTime0_X,TanTime0_X).
            "Time0_1"
            This variable provides a scaled floating point time value [0..1] which repeats itself
            based on the “Cycle time” set in the RenderMonkey Preferences dialog. By
            default this “Cycle time” is set to 120 seconds. This means that the value of this
            variable cycles from 0 to 1 in 120 seconds and then goes back to 0 again.
            "CosTime0_1"
            This variable will provide the cosine of Time0_1.
            "SinTime0_1"
            This variable will provide the sine of Time0_1.
            "TanTime0_1"
            This variable will provide the tangent of Time0_1.
            "Time0_1_Packed"
            This variable will pack the above xxxTime0_1 variables into a 4 component
            floating point vector.
            Example: float4(Time0_1,CosTime0_1,SinTime0_1,TanTime0_1).
            "Time0_2PI"
            This variable provides a scaled floating point time value [0..2PI] which repeats
            itself based on the “Cycle time” set in the RenderMonkey Preferences dialog. By
            default this “Cycle time” is set to 120 seconds. This means that the value of this
            variable cycles from 0 to 2PI in 120 seconds and then goes back to 0 again.
            "CosTime0_2PI"
            This variable will provide the cosine of Time0_2PI.
            "SinTime0_2PI"
            This variable will provide the sine of Time0_2PI.
            "TanTime0_2PI"
            This variable will provide the tangent of Time0_2PI .
            "Time0_2PI_Packed"
            This variable will pack the above xxxTime0_2PI variables into a 4 component
            floating point vector.
            Example: float4(Time0_2PI,CosTime0_2PI,SinTime0_2PI,TanTime0_2PI).
            "TimeCyclePeriod"
            This variable provides the “Cycle time” floating point value, as set in the
            RenderMonkey Preferences dialog. By default this “Cycle time” is set to 120
            seconds.
            "FPS"
            This variable provides the calculated frames per second, returned as a floating
            point value.
            "TimeElapsed"
            This variable provides the elapsed time (in seconds) from the last frame to the
            current frame, returned as a floating point value.


            Viewport

            "ViewportWidth"
            This variable provides the preview window width (in pixels), returned as a
            floating point value.
            "ViewportHeight"
            This variable provides the preview window height (in pixels), returned as a
            floating point value.
            "ViewportDimensions"
               This variable provides the preview window width and height (in pixels), returned
            as a float2 value.
            "ViewportWidthInverse"
               This variable will return 1.0 / ViewportWidth. 【重劍注:NND!就是倒數啊!】
            "ViewportHeightInverse"
               This variable will return 1.0 / ViewportHeight.
            "InverseViewportDimensions"
            This variable provides the inverse of the “ViewportDimensions”, returned as a
            float2 value.
            Random Values
            "RandomFraction1PerPass"
            "RandomFraction2PerPass"
            "RandomFraction3PerPass"
            "RandomFraction4PerPass"
            Each of these variables provide a random floating point value in the range of
            [0..1]. These values are updated each pass.
            "RandomFraction1PerEffect"
            "RandomFraction2PerEffect"
            "RandomFraction3PerEffect"
            "RandomFraction4PerEffect"
            Each of these variables provide a random floating point value in the range of
            [0..1]. These values are updated each effect.

            Pass

            "PassIndex"
            This variable will provide the pass index, returned as a floating point value.

            Mouse Parameters

            "LeftMouseButton"
            This variable will return a floating point value of 1.0 if the left mouse button is
            currently pressed, or 0.0 if it is not currently pressed.
            "MiddleMouseButton"
            This variable will return a floating point value of 1.0 if the middle mouse button is
            currently pressed, or 0.0 if it is not currently pressed.
            "RightMouseButton"
            This variable will return a floating point value of 1.0 if the right mouse button is
            currently pressed, or 0.0 if it is not currently pressed.
            "MouseButtonsPacked"
            This variable will pack the above xxxMouseButton variables into a 4 component
            floating point vector.
            Example: float4(LeftMouseButton,MiddleMouseButton,RightMouseButton ,0.0).
            "MouseCoordinateX"
            This variable will return the horizontal mouse position (in pixels), relative to the
            client area of the preview window, returned as a floating point value.
            "MouseCoordinateY"
            This variable will return the vertical mouse position (in pixels), relative to the
            client area of the preview window, returned as a floating point value.
            "MouseCoordinateXNDC"
            This variable will return "MouseCoordinateX" / "ViewportWidth".
            "MouseCoordinateYNDC"
            This variable will return "MouseCoordinateY" / "ViewportHeight".
            "MouseCoordsPacked"
            This variable will pack the above MouseCoordinatexxx variables into a 4
            component floating point vector.
            Example: float4(MouseCoordinateX,MouseCoordinateY,XNDC,YNDC).
            "MouseCoordinateXY"
            This variable will return the "MouseCoordinateX" and "MouseCoordinateY"
            coordinates into a 2 component floating point vector.
            Example: float2(MouseCoordinateX,MouseCoordinateY).
            "MouseCoordinateXYNDC"
            This variable will return the "MouseCoordinateXNDC" and
            "MouseCoordinateYNDC" coordinates into a 2 component floating point vector.
            Example: float2(MouseCoordinateXNDC,MouseCoordinateYNDC).

            Model Parameters

            "ModelMoundingBoxTopLeftCorner"
            This variable provides the top left coordinate of the model as a 3 component
            floating point vector (world space).
            "ModelMoundingBoxBottomRightCorner"
            This variable provides the bottom right coordinate of the model as a 3 component
            floating point vector (world space).
            "ModelMoundingBoxCenter"
            This variable provides the bounding box center of the model as a 3 component
            floating point vector (world space).
            "ModelCentroid"
            This variable provides the centroid of the model as a 3 component floating point
            vector (world space).
            "ModelBoundingSphereCenter"
            This variable provides the bounding sphere center of the model as a 3 component
            floating point vector (world space).
            "ModelBoundingSphereRadius"
            This variable provides the bounding sphere radius of the model as a single
            component floating point value (world space).

            View Parameters

            "ViewDirection"
            This variable provides the view direction vector (world space).
            "ViewPosition"
            This variable provides the view position (world space).
            "ViewSideVector"
            This variable provides the view size vector (world space).
            "ViewUpVector"
            This variable provides the view up vector (world space).
            "FOV"
            This variable provides the field of view as a floating point value.
            "NearClipPlane”
            This variable provides the near clip distance as a floating point value.
            "FarClipPlane”
            This variable provides the far clip distance as a floating point value.

            View Matrices

            "View"
            "ViewTranspose"
            "ViewInverse"
            "ViewInverseTranspose"
            These 4x4 matrix variables provide the view matrix, its transpose, its inverse, and
            the inverse transpose.
            "Projection"
            "ProjectionTranspose"
            "ProjectionInverse"
            "ProjectionInverseTranspose"
            These 4x4 matrix variables provide the projection matrix, its transpose, its
            inverse, and the inverse transpose.

            "ViewProjection"
            "ViewProjectionTranspose"
            "ViewProjectionInverse"
            "ViewProjectionInverseTranspose"
            These 4x4 matrix variables provide the view * projection matrix, its transpose, its
            inverse, and the inverse transpose.
            "World"
            "WorldTranspose"
            "WorldInverse"
            "WorldInverseTranspose"
            These 4x4 matrix variables provide the world matrix, its transpose, its inverse,
            and the inverse transpose. Note that since this version of RenderMonkey does not
            support implementation of a scene graph, we have decided to keep the world
            matrix as identity, but provide this predefined variable for your development
            convenience. The user may apply this variable in their shader and when imported
            into their engine, they may provide appropriate value of the world view projection
            matrix through the engine’s calculations.
            "WorldView"
            "WorldViewTranspose"
            "WorldViewInverse"
            "WorldViewInverseTranspose"
            These 4x4 matrix variables provide the world * view matrix, its transpose, its
            inverse, and the inverse transpose.
            "WorldViewProjection"
            "WorldViewProjectionTranspose"
            "WorldViewProjectionInverse"
            "WorldViewProjectionInverseTranspose"
            These 4x4 matrix variables provide the World * View * Projection matrix, its
            transpose, its inverse, and the inverse transpose.

            Customizing Predefined Variable Names

            All predefined variable names are customizable through editing the
            “.\UserData\RmPredefinedVariabled.txt” file. The data file is organized into four
            columns. The first column contains the name that the variable will be created with by
            default. This column is editable by the user. No other column data should be modified.
             The second column specifies the variable type; the third column specifies the rendering
            update frequency, and the fourth column species the predefined variable semantic. When
            items in the first column have been modified, RenderMonkey should be restarted for the
            changes to take effect.
            posted on 2008-12-09 20:43 七星重劍 閱讀(3971) 評論(0)  編輯 收藏 引用 所屬分類: Game GraphicsHLSL&ShaderMonkey
            热综合一本伊人久久精品| 久久国产精品成人影院| 国内精品久久久久久久久| 久久久久亚洲精品无码网址| 久久青青草原亚洲av无码| 久久精品人人做人人爽电影| 97久久天天综合色天天综合色hd| 久久综合狠狠综合久久激情 | 人人狠狠综合久久亚洲| 波多野结衣久久精品| 久久久久人妻一区精品性色av| 精品999久久久久久中文字幕| 欧美一级久久久久久久大片| 亚洲精品美女久久久久99| 成人a毛片久久免费播放| 久久天天躁狠狠躁夜夜躁2014| 国产精品久久久天天影视| 狠狠色丁香久久婷婷综合图片| 久久成人精品视频| 亚洲精品美女久久777777| 大美女久久久久久j久久| 久久久久亚洲AV无码网站| 色天使久久综合网天天| 91精品免费久久久久久久久| 亚洲国产精品无码久久久不卡| 国产精品VIDEOSSEX久久发布| 久久亚洲AV成人出白浆无码国产 | 久久久精品午夜免费不卡| 伊人久久综合成人网| 性做久久久久久久久浪潮| 亚洲国产精品婷婷久久| 狠狠色丁香婷婷久久综合不卡| 欧美亚洲国产精品久久久久| 大美女久久久久久j久久| 国产成人无码精品久久久久免费| 国产精品久久久久久一区二区三区| 久久久久久免费视频| 久久久久国产精品嫩草影院| 亚洲精品国精品久久99热| 亚洲人成无码久久电影网站| 观看 国产综合久久久久鬼色 欧美 亚洲 一区二区 |