fdBumpMap.dfm 4.6 KB

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