Unit1.dfm 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'GLSL Ocean'
  5. ClientHeight = 397
  6. ClientWidth = 567
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. OnCreate = FormCreate
  15. PixelsPerInch = 96
  16. TextHeight = 13
  17. object GLSceneViewer1: TGLSceneViewer
  18. Left = 0
  19. Top = 0
  20. Width = 567
  21. Height = 397
  22. Camera = GLCamera
  23. BeforeRender = GLSceneViewer1BeforeRender
  24. Buffer.BackgroundColor = clBlack
  25. Buffer.FaceCulling = False
  26. Buffer.Lighting = False
  27. FieldOfView = 162.811462402343800000
  28. Align = alClient
  29. OnMouseDown = GLSceneViewer1MouseDown
  30. TabOrder = 0
  31. end
  32. object GLScene1: TGLScene
  33. ObjectsSorting = osNone
  34. Left = 56
  35. Top = 16
  36. object GLLightSource1: TGLLightSource
  37. ConstAttenuation = 1.000000000000000000
  38. Position.Coordinates = {000000400000A040000000000000803F}
  39. SpotCutOff = 180.000000000000000000
  40. object GLSphere1: TGLSphere
  41. Material.FrontProperties.Diffuse.Color = {0000803F0000803F0000803F0000803F}
  42. Material.FrontProperties.Emission.Color = {0000803F0000803F0000803F0000803F}
  43. Visible = False
  44. Radius = 0.050000000745058060
  45. end
  46. end
  47. object DOInitialize: TGLDirectOpenGL
  48. Direction.Coordinates = {000000000000803F0000000000000000}
  49. Up.Coordinates = {0000000000000000000080BF00000000}
  50. UseBuildList = False
  51. OnRender = DOInitializeRender
  52. Blend = False
  53. end
  54. object DOOceanPlane: TGLDirectOpenGL
  55. Visible = False
  56. UseBuildList = False
  57. OnRender = DOOceanPlaneRender
  58. Blend = False
  59. end
  60. object GLHeightField1: TGLHeightField
  61. Material.MaterialLibrary = MatLib
  62. Material.LibMaterialName = 'water'
  63. XSamplingScale.Min = -100.000000000000000000
  64. XSamplingScale.Max = 100.000000000000000000
  65. XSamplingScale.Step = 2.000000000000000000
  66. YSamplingScale.Min = -100.000000000000000000
  67. YSamplingScale.Max = 100.000000000000000000
  68. YSamplingScale.Step = 2.000000000000000000
  69. OnGetHeight = GLHeightField1GetHeight
  70. end
  71. object GLSphere2: TGLSphere
  72. Material.MaterialLibrary = MatLib
  73. Material.LibMaterialName = 'cubeMap'
  74. Up.Coordinates = {00000000000080BF0000008000000000}
  75. Radius = 150.000000000000000000
  76. end
  77. object GLCamera: TGLCamera
  78. DepthOfView = 200.000000000000000000
  79. FocalLength = 30.000000000000000000
  80. SceneScale = 2.000000000000000000
  81. TargetObject = GLHeightField1
  82. Position.Coordinates = {0000C8C10000A0C1000040400000803F}
  83. Direction.Coordinates = {0000803F000000000000008000000000}
  84. Up.Coordinates = {00000000000000000000803F00000000}
  85. end
  86. end
  87. object MatLib: TGLMaterialLibrary
  88. Materials = <
  89. item
  90. Name = 'water'
  91. Tag = 0
  92. Material.Texture.TextureMode = tmReplace
  93. Material.Texture.TextureFormat = tfRGB
  94. Material.Texture.Disabled = False
  95. Material.Texture.NormalMapScale = 0.050000000745058060
  96. Shader = GLUserShader1
  97. end
  98. item
  99. Name = 'cubeMap'
  100. Tag = 0
  101. Material.Texture.ImageClassName = 'TGLCubeMapImage'
  102. Material.Texture.TextureMode = tmReplace
  103. Material.Texture.TextureWrap = twNone
  104. Material.Texture.MappingMode = tmmCubeMapNormal
  105. Material.Texture.Disabled = False
  106. end>
  107. Left = 56
  108. Top = 72
  109. end
  110. object GLCadencer1: TGLCadencer
  111. Scene = GLScene1
  112. OnProgress = GLCadencer1Progress
  113. Left = 200
  114. Top = 16
  115. end
  116. object GLUserShader1: TGLUserShader
  117. OnDoApply = GLUserShader1DoApply
  118. OnDoUnApply = GLUserShader1DoUnApply
  119. Left = 128
  120. Top = 72
  121. end
  122. object GLMemoryViewer1: TGLMemoryViewer
  123. Camera = CameraCubeMap
  124. Width = 128
  125. Height = 128
  126. Buffer.BackgroundColor = clBlack
  127. Buffer.ContextOptions = [roDoubleBuffer, roRenderToWindow, roDestinationAlpha]
  128. Left = 296
  129. Top = 16
  130. end
  131. object GLScene2: TGLScene
  132. Left = 128
  133. Top = 16
  134. object GLEarthSkyDome1: TGLEarthSkyDome
  135. Direction.Coordinates = {FEFF7F27000080A7FFFF7F3F00000000}
  136. RollAngle = -45.000000000000000000
  137. Up.Coordinates = {F30435BFF304353FD413D42600000000}
  138. Bands = <>
  139. Stars = <>
  140. SunElevation = 25.000000000000000000
  141. Turbidity = 75.000000000000000000
  142. SunDawnColor.Color = {0000803F0000803F0000403F00000000}
  143. ExtendedOptions = []
  144. Slices = 48
  145. Stacks = 24
  146. end
  147. object CameraCubeMap: TGLCamera
  148. DepthOfView = 100.000000000000000000
  149. FocalLength = 50.000000000000000000
  150. Direction.Coordinates = {00000000000000800000803F00000000}
  151. end
  152. end
  153. object GLSimpleNavigation1: TGLSimpleNavigation
  154. Form = Owner
  155. GLSceneViewer = GLSceneViewer1
  156. FormCaption = 'GLSL Ocean - %FPS'
  157. KeyCombinations = <
  158. item
  159. ShiftState = [ssLeft, ssRight]
  160. Action = snaZoom
  161. end
  162. item
  163. ShiftState = [ssLeft]
  164. Action = snaMoveAroundTarget
  165. end
  166. item
  167. ShiftState = [ssRight]
  168. Action = snaMoveAroundTarget
  169. end>
  170. Left = 296
  171. Top = 72
  172. end
  173. end