fBumpMapD.dfm 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. object BumpDemo_frm: TBumpDemo_frm
  2. Left = 167
  3. Top = 182
  4. Caption = 'Cg BumpMapping'
  5. ClientHeight = 638
  6. ClientWidth = 1019
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'MS Sans Serif'
  12. Font.Style = []
  13. Position = poScreenCenter
  14. OnCreate = FormCreate
  15. TextHeight = 13
  16. object SceneViewer: TGLSceneViewer
  17. Left = 289
  18. Top = 0
  19. Width = 730
  20. Height = 638
  21. Camera = Camera
  22. Buffer.BackgroundColor = clSkyBlue
  23. Buffer.AmbientColor.Color = {00000000000000000000000000000000}
  24. Buffer.AntiAliasing = aaNone
  25. FieldOfView = 145.189712524414100000
  26. PenAsTouch = False
  27. Align = alClient
  28. TabOrder = 0
  29. end
  30. object Shaders_ctrl: TPageControl
  31. Left = 0
  32. Top = 0
  33. Width = 289
  34. Height = 638
  35. ActivePage = ts_Vertex_Program
  36. Align = alLeft
  37. TabOrder = 1
  38. object ts_Fragment_Program: TTabSheet
  39. Caption = 'Pixel Shader'
  40. object FP_Memo: TMemo
  41. Left = 0
  42. Top = 24
  43. Width = 273
  44. Height = 433
  45. Lines.Strings = (
  46. '')
  47. ScrollBars = ssBoth
  48. TabOrder = 0
  49. OnChange = FP_MemoChange
  50. end
  51. object FP_btn: TButton
  52. Left = 200
  53. Top = 464
  54. Width = 75
  55. Height = 25
  56. Caption = 'Apply'
  57. TabOrder = 1
  58. OnClick = FP_btnClick
  59. end
  60. object FP_cb: TCheckBox
  61. Left = 0
  62. Top = 0
  63. Width = 97
  64. Height = 17
  65. Caption = 'Enabled'
  66. TabOrder = 2
  67. OnClick = FP_cbClick
  68. end
  69. end
  70. object ts_Vertex_Program: TTabSheet
  71. Caption = 'Vertex Shader'
  72. ImageIndex = 1
  73. object VP_Memo: TMemo
  74. Left = 0
  75. Top = 24
  76. Width = 273
  77. Height = 433
  78. ScrollBars = ssBoth
  79. TabOrder = 0
  80. OnChange = VP_MemoChange
  81. end
  82. object VP_btn: TButton
  83. Left = 200
  84. Top = 464
  85. Width = 75
  86. Height = 25
  87. Caption = 'Apply'
  88. TabOrder = 1
  89. OnClick = VP_btnClick
  90. end
  91. object VP_cb: TCheckBox
  92. Left = 0
  93. Top = 0
  94. Width = 97
  95. Height = 17
  96. Caption = 'Enabled'
  97. TabOrder = 2
  98. OnClick = VP_cbClick
  99. end
  100. end
  101. end
  102. object Scene: TGLScene
  103. VisibilityCulling = vcObjectBased
  104. Left = 360
  105. Top = 16
  106. object LightSource: TGLLightSource
  107. Ambient.Color = {0000803F0000803F0000803F0000803F}
  108. ConstAttenuation = 1.000000000000000000
  109. Position.Coordinates = {000000C00000803F000000400000803F}
  110. LightStyle = lsOmni
  111. SpotCutOff = 180.000000000000000000
  112. object Light_Sphere: TGLSphere
  113. Material.FrontProperties.Ambient.Color = {0000803F0000803F0000803F0000803F}
  114. Material.FrontProperties.Diffuse.Color = {0000803F0000803F0000803F0000803F}
  115. Material.FrontProperties.Emission.Color = {0000803F0000803F0000803F0000803F}
  116. Material.FrontProperties.Specular.Color = {0000803F0000803F0000803F0000803F}
  117. Radius = 0.100000001490116100
  118. end
  119. end
  120. object Dummy: TGLDummyCube
  121. CubeSize = 1.000000000000000000
  122. end
  123. object Cube_2: TGLCube
  124. Position.Coordinates = {0000803F00000000000000000000803F}
  125. CubeSize = {6666A63F6666A63F6666A63F}
  126. end
  127. object GLSphere1: TGLSphere
  128. Position.Coordinates = {000080BF00000000000000000000803F}
  129. Radius = 1.000000000000000000
  130. Slices = 64
  131. end
  132. object Camera: TGLCamera
  133. DepthOfView = 100.000000000000000000
  134. FocalLength = 100.000000000000000000
  135. TargetObject = Dummy
  136. Position.Coordinates = {00000000000000000000A0400000803F}
  137. end
  138. end
  139. object Cadencer: TGLCadencer
  140. Scene = Scene
  141. OnProgress = CadencerProgress
  142. Left = 440
  143. Top = 16
  144. end
  145. object CgShader: TCgShader
  146. VertexProgram.OnApply = CgShaderApplyVP
  147. FragmentProgram.OnApply = CgShaderApplyFP
  148. OnApplyVP = CgShaderApplyVP
  149. OnApplyFP = CgShaderApplyFP
  150. Left = 360
  151. Top = 72
  152. end
  153. object MaterialLibrary: TGLMaterialLibrary
  154. Left = 512
  155. Top = 16
  156. end
  157. object Timer: TGLAsyncTimer
  158. Enabled = True
  159. Interval = 500
  160. OnTimer = TimerTimer
  161. ThreadPriority = tpNormal
  162. Left = 440
  163. Top = 72
  164. end
  165. object GLSimpleNavigation1: TGLSimpleNavigation
  166. Form = Owner
  167. GLSceneViewer = SceneViewer
  168. FormCaption = 'Cg BumpMapping - %FPS'
  169. KeyCombinations = <
  170. item
  171. ShiftState = [ssLeft, ssRight]
  172. Action = snaZoom
  173. end
  174. item
  175. ShiftState = [ssLeft]
  176. Action = snaMoveAroundTarget
  177. end
  178. item
  179. ShiftState = [ssRight]
  180. Action = snaMoveAroundTarget
  181. end>
  182. Left = 688
  183. Top = 120
  184. end
  185. end