fdOceanD.dfm 5.0 KB

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