| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- object FormBumpMap: TFormBumpMap
- Left = 167
- Top = 182
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Caption = 'Cg BumpMap'
- ClientHeight = 1117
- ClientWidth = 1797
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -19
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- Position = poScreenCenter
- OnCreate = FormCreate
- PixelsPerInch = 168
- TextHeight = 24
- object SceneViewer: TGLSceneViewer
- Left = 506
- Top = 0
- Width = 1291
- Height = 1117
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Camera = Camera
- Buffer.BackgroundColor = clSkyBlue
- Buffer.AmbientColor.Color = {00000000000000000000000000000000}
- Buffer.AntiAliasing = aaNone
- FieldOfView = 159.697402954101600000
- PenAsTouch = False
- Align = alClient
- TabOrder = 0
- end
- object Shaders_ctrl: TPageControl
- Left = 0
- Top = 0
- Width = 506
- Height = 1117
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- ActivePage = ts_Vertex_Program
- Align = alLeft
- TabOrder = 1
- object ts_Fragment_Program: TTabSheet
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Caption = 'Pixel Shader'
- object FP_Memo: TMemo
- Left = 0
- Top = 42
- Width = 478
- Height = 758
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Lines.Strings = (
- '')
- ScrollBars = ssBoth
- TabOrder = 0
- OnChange = FP_MemoChange
- end
- object FP_btn: TButton
- Left = 350
- Top = 812
- Width = 131
- Height = 44
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Caption = 'Apply'
- TabOrder = 1
- OnClick = FP_btnClick
- end
- object FP_cb: TCheckBox
- Left = 0
- Top = 0
- Width = 170
- Height = 30
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Caption = 'Enabled'
- TabOrder = 2
- OnClick = FP_cbClick
- end
- end
- object ts_Vertex_Program: TTabSheet
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Caption = 'Vertex Shader'
- ImageIndex = 1
- object VP_Memo: TMemo
- Left = 0
- Top = 42
- Width = 478
- Height = 758
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- ScrollBars = ssBoth
- TabOrder = 0
- OnChange = VP_MemoChange
- end
- object VP_btn: TButton
- Left = 350
- Top = 812
- Width = 131
- Height = 44
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Caption = 'Apply'
- TabOrder = 1
- OnClick = VP_btnClick
- end
- object VP_cb: TCheckBox
- Left = 0
- Top = 0
- Width = 170
- Height = 30
- Margins.Left = 5
- Margins.Top = 5
- Margins.Right = 5
- Margins.Bottom = 5
- Caption = 'Enabled'
- TabOrder = 2
- OnClick = VP_cbClick
- end
- end
- end
- object Scene: TGLScene
- VisibilityCulling = vcObjectBased
- Left = 360
- Top = 16
- object LightSource: TGLLightSource
- Ambient.Color = {0000803F0000803F0000803F0000803F}
- ConstAttenuation = 1.000000000000000000
- Position.Coordinates = {000000C00000803F000000400000803F}
- LightStyle = lsOmni
- SpotCutOff = 180.000000000000000000
- object Light_Sphere: TGLSphere
- Material.FrontProperties.Ambient.Color = {0000803F0000803F0000803F0000803F}
- Material.FrontProperties.Diffuse.Color = {0000803F0000803F0000803F0000803F}
- Material.FrontProperties.Emission.Color = {0000803F0000803F0000803F0000803F}
- Material.FrontProperties.Specular.Color = {0000803F0000803F0000803F0000803F}
- Radius = 0.100000001490116100
- end
- end
- object Dummy: TGLDummyCube
- CubeSize = 1.000000000000000000
- end
- object Cube_2: TGLCube
- Position.Coordinates = {0000803F00000000000000000000803F}
- CubeSize = {6666A63F6666A63F6666A63F}
- end
- object GLSphere1: TGLSphere
- Position.Coordinates = {000080BF00000000000000000000803F}
- Radius = 1.000000000000000000
- Slices = 64
- end
- object Camera: TGLCamera
- DepthOfView = 100.000000000000000000
- FocalLength = 100.000000000000000000
- TargetObject = Dummy
- Position.Coordinates = {00000000000000000000A0400000803F}
- end
- end
- object Cadencer: TGLCadencer
- Scene = Scene
- OnProgress = CadencerProgress
- Left = 440
- Top = 16
- end
- object CgShader: TCgShader
- VertexProgram.OnApply = CgShaderApplyVP
- FragmentProgram.OnApply = CgShaderApplyFP
- OnApplyVP = CgShaderApplyVP
- OnApplyFP = CgShaderApplyFP
- Left = 360
- Top = 72
- end
- object MaterialLibrary: TGLMaterialLibrary
- Left = 512
- Top = 16
- end
- object Timer: TGLAsyncTimer
- Enabled = True
- Interval = 500
- OnTimer = TimerTimer
- ThreadPriority = tpNormal
- Left = 440
- Top = 72
- end
- object GLSimpleNavigation1: TGLSimpleNavigation
- Form = Owner
- GLSceneViewer = SceneViewer
- FormCaption = 'Cg BumpMapping - %FPS'
- KeyCombinations = <
- item
- ShiftState = [ssLeft, ssRight]
- Action = snaZoom
- end
- item
- ShiftState = [ssLeft]
- Action = snaMoveAroundTarget
- end
- item
- ShiftState = [ssRight]
- Action = snaMoveAroundTarget
- end>
- Left = 688
- Top = 120
- end
- end
|