fBumpMapD.dfm 5.6 KB

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