fdDiffuseShader.dfm 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. object FormDiffuseShader: TFormDiffuseShader
  2. Left = 261
  3. Top = 176
  4. Caption = 'GLSL Diffuse Specular Shader'
  5. ClientHeight = 527
  6. ClientWidth = 798
  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 Viewer: TGLSceneViewer
  17. Left = 0
  18. Top = 0
  19. Width = 637
  20. Height = 527
  21. Camera = Camera
  22. Buffer.FogEnvironment.FogColor.Color = {ACC8483E9A99193FCDCC4C3F9A99993E}
  23. Buffer.FogEnvironment.FogStart = 50.000000000000000000
  24. Buffer.FogEnvironment.FogEnd = 5000.000000000000000000
  25. Buffer.FogEnvironment.FogDistance = fdEyeRadial
  26. Buffer.BackgroundColor = clBackground
  27. Buffer.ContextOptions = [roDoubleBuffer, roStencilBuffer, roRenderToWindow, roDebugContext]
  28. Buffer.AntiAliasing = aaNone
  29. Buffer.DepthPrecision = dp24bits
  30. Buffer.ColorDepth = cd24bits
  31. FieldOfView = 152.285934448242200000
  32. PenAsTouch = False
  33. Align = alClient
  34. TabOrder = 0
  35. end
  36. object Panel1: TPanel
  37. Left = 637
  38. Top = 0
  39. Width = 161
  40. Height = 527
  41. Align = alRight
  42. TabOrder = 1
  43. ExplicitLeft = 629
  44. ExplicitHeight = 502
  45. object LightMovingCheckBox: TCheckBox
  46. Left = 8
  47. Top = 8
  48. Width = 97
  49. Height = 17
  50. Caption = 'Light is Moving'
  51. Checked = True
  52. Color = clBtnFace
  53. ParentColor = False
  54. State = cbChecked
  55. TabOrder = 0
  56. end
  57. object ShaderEnabledCheckBox: TCheckBox
  58. Left = 8
  59. Top = 64
  60. Width = 97
  61. Height = 17
  62. Caption = 'Shader Enabled'
  63. Checked = True
  64. State = cbChecked
  65. TabOrder = 1
  66. OnClick = ShaderEnabledCheckBoxClick
  67. end
  68. object TurnPitchrollCheckBox: TCheckBox
  69. Left = 8
  70. Top = 24
  71. Width = 137
  72. Height = 17
  73. Caption = 'Turn-Pitch-Roll Enabled'
  74. Checked = True
  75. State = cbChecked
  76. TabOrder = 2
  77. end
  78. object RealisticSpecularCheckBox: TCheckBox
  79. Left = 8
  80. Top = 113
  81. Width = 137
  82. Height = 17
  83. Caption = 'Realistic Specular Mode'
  84. TabOrder = 3
  85. OnClick = RealisticSpecularCheckBoxClick
  86. end
  87. object MultiLightShaderCheckBox: TCheckBox
  88. Left = 8
  89. Top = 80
  90. Width = 113
  91. Height = 17
  92. Caption = 'MultiLight Shader'
  93. Checked = True
  94. State = cbChecked
  95. TabOrder = 4
  96. OnClick = MultiLightShaderCheckBoxClick
  97. end
  98. object EnableFogCheckBox: TCheckBox
  99. Left = 8
  100. Top = 136
  101. Width = 137
  102. Height = 17
  103. Caption = 'Enable fog'
  104. TabOrder = 5
  105. OnClick = EnableFogCheckBoxClick
  106. end
  107. end
  108. object Scene: TGLScene
  109. ObjectsSorting = osNone
  110. Left = 24
  111. Top = 16
  112. object GUICube: TGLDummyCube
  113. CubeSize = 1.000000000000000000
  114. object GLArrowLine1: TGLArrowLine
  115. Position.Coordinates = {00000000000000000000C8420000803F}
  116. Scale.Coordinates = {0000A0410000A0410000A04100000000}
  117. BottomRadius = 0.100000001490116100
  118. Height = 1.000000000000000000
  119. TopRadius = 0.100000001490116100
  120. TopArrowHeadHeight = 0.500000000000000000
  121. TopArrowHeadRadius = 0.200000002980232200
  122. BottomArrowHeadHeight = 0.500000000000000000
  123. BottomArrowHeadRadius = 0.200000002980232200
  124. end
  125. object GLXYZGrid1: TGLXYZGrid
  126. Direction.Coordinates = {00000000000080BF0000000000000000}
  127. Position.Coordinates = {00000000000000000000A0C10000803F}
  128. Up.Coordinates = {00000000000000000000803F00000000}
  129. XSamplingScale.Min = -200.000000000000000000
  130. XSamplingScale.Max = 200.000000000000000000
  131. XSamplingScale.Step = 20.000000000000000000
  132. YSamplingScale.Min = -200.000000000000000000
  133. YSamplingScale.Max = 200.000000000000000000
  134. YSamplingScale.Step = 20.000000000000000000
  135. ZSamplingScale.Min = -200.000000000000000000
  136. ZSamplingScale.Max = 200.000000000000000000
  137. ZSamplingScale.Step = 20.000000000000000000
  138. Parts = [gpX, gpZ]
  139. end
  140. end
  141. object LightCube: TGLDummyCube
  142. Direction.Coordinates = {0000000000000000000080BF00000000}
  143. Position.Coordinates = {000096C300000000000096430000803F}
  144. OnProgress = LightCubeProgress
  145. CubeSize = 1.000000000000000000
  146. object Light: TGLLightSource
  147. ConstAttenuation = 1.000000000000000000
  148. Position.Coordinates = {0000803F00000000000000000000803F}
  149. LightStyle = lsOmni
  150. Specular.Color = {0000803F0000803F0000803F0000803F}
  151. SpotCutOff = 180.000000000000000000
  152. end
  153. object GLSphere1: TGLSphere
  154. Material.FrontProperties.Diffuse.Color = {E6E5653F8180003DCDCC4C3F0000803F}
  155. Material.FrontProperties.Emission.Color = {F4F3733FEEED6D3F000000000000803F}
  156. Radius = 1.000000000000000000
  157. end
  158. end
  159. object LightCube2: TGLDummyCube
  160. Position.Coordinates = {000096430000C842000096430000803F}
  161. Visible = False
  162. CubeSize = 1.000000000000000000
  163. object Light2: TGLLightSource
  164. Ambient.Color = {CDCCCC3DCDCCCC3DCDCCCC3D0000803F}
  165. ConstAttenuation = 1.000000000000000000
  166. Diffuse.Color = {DCD8583FC6BF3F3FDCD8583F0000803F}
  167. LightStyle = lsParallel
  168. Specular.Color = {0000803F0000003F0000003F0000803F}
  169. SpotCutOff = 180.000000000000000000
  170. SpotDirection.Coordinates = {0000C842000096430000C84200000000}
  171. end
  172. object GLArrowLine2: TGLArrowLine
  173. Material.FrontProperties.Ambient.Color = {1904763FCDCC4C3ECDCC4C3E0000803F}
  174. Material.FrontProperties.Diffuse.Color = {E7FB693FCDCC4C3FCDCC4C3F0000803F}
  175. Material.FrontProperties.Emission.Color = {1904763FCDCC4C3ECDCC4C3E0000803F}
  176. Direction.Coordinates = {B25F9ABE8B8F67BFB25F9ABE00000000}
  177. Scale.Coordinates = {00004842000048420000484200000000}
  178. Up.Coordinates = {F7BC23BF4A51DA3EF7BC23BF00000000}
  179. BottomRadius = 0.100000001490116100
  180. Height = 2.000000000000000000
  181. TopRadius = 0.100000001490116100
  182. TopArrowHeadHeight = 0.500000000000000000
  183. TopArrowHeadRadius = 0.200000002980232200
  184. BottomArrowHeadHeight = 0.500000000000000000
  185. BottomArrowHeadRadius = 0.200000002980232200
  186. end
  187. end
  188. object WorldCube: TGLDummyCube
  189. CubeSize = 1.000000000000000000
  190. object Fighter: TGLActor
  191. Material.MaterialLibrary = MaterialLibrary
  192. Material.LibMaterialName = 'Fighter'
  193. Position.Coordinates = {0000164300000000000000000000803F}
  194. Up.Coordinates = {00000000000080BF0000000000000000}
  195. Interval = 100
  196. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  197. end
  198. object Teapot: TGLActor
  199. Material.MaterialLibrary = MaterialLibrary
  200. Material.LibMaterialName = 'Fighter'
  201. Position.Coordinates = {000016C300000000000000000000803F}
  202. Interval = 100
  203. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  204. end
  205. object Sphere: TGLActor
  206. Material.MaterialLibrary = MaterialLibrary
  207. Material.LibMaterialName = 'Earth'
  208. Position.Coordinates = {0000000000001643000000000000803F}
  209. Scale.Coordinates = {CDCCCC3DCDCCCC3DCDCCCC3D00000000}
  210. Interval = 100
  211. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  212. end
  213. object Sphere_big: TGLActor
  214. Material.MaterialLibrary = MaterialLibrary
  215. Material.LibMaterialName = 'Earth'
  216. Position.Coordinates = {00000000000016C3000000000000803F}
  217. Interval = 100
  218. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  219. end
  220. end
  221. object Camera: TGLCamera
  222. DepthOfView = 500.000000000000000000
  223. FocalLength = 65.000000000000000000
  224. TargetObject = GLXYZGrid1
  225. CameraStyle = csInfinitePerspective
  226. Position.Coordinates = {000016C30000AF43000082430000803F}
  227. Direction.Coordinates = {00000000000080BF0000000000000000}
  228. Up.Coordinates = {00000000000000000000803F00000000}
  229. end
  230. end
  231. object Cadencer: TGLCadencer
  232. Scene = Scene
  233. MaxDeltaTime = 0.020000000000000000
  234. OnProgress = CadencerProgress
  235. Left = 136
  236. Top = 14
  237. end
  238. object MaterialLibrary: TGLMaterialLibrary
  239. Materials = <
  240. item
  241. Name = 'Fighter'
  242. Tag = 0
  243. Material.FrontProperties.Ambient.Color = {BFBEBE3EBBBABA3EBBBABA3E0000803F}
  244. Material.FrontProperties.Emission.Color = {B1B0B03DB1B0B03DB1B0B03D0000803F}
  245. Material.FrontProperties.Specular.Color = {8988083E8180003E8988083E0000803F}
  246. Material.BlendingMode = bmTransparency
  247. Material.Texture.TextureMode = tmModulate
  248. Material.Texture.Disabled = False
  249. end
  250. item
  251. Name = 'Earth'
  252. Tag = 0
  253. Material.FrontProperties.Ambient.Color = {C1C0403DC1C0403D8180003D0000803F}
  254. Material.FrontProperties.Emission.Color = {A1A0203DA1A0203DC1C0403D0000803F}
  255. Material.FrontProperties.Shininess = 128
  256. Material.FrontProperties.Specular.Color = {0000803F0000803F0000803F0000803F}
  257. Material.BlendingMode = bmTransparency
  258. Material.Texture.TextureMode = tmModulate
  259. Material.Texture.Disabled = False
  260. end>
  261. Left = 52
  262. Top = 158
  263. end
  264. object DiffuseSpecularShader: TGLSLDiffuseSpecularShader
  265. LightPower = 1.000000000000000000
  266. Left = 294
  267. Top = 16
  268. end
  269. object GLSimpleNavigation1: TGLSimpleNavigation
  270. Form = Owner
  271. GLSceneViewer = Viewer
  272. FormCaption = 'GLSL Diffuse Specular Shader - %FPS'
  273. KeyCombinations = <
  274. item
  275. ShiftState = [ssLeft, ssRight]
  276. Action = snaZoom
  277. end
  278. item
  279. ShiftState = [ssLeft]
  280. Action = snaMoveAroundTarget
  281. end
  282. item
  283. ShiftState = [ssRight]
  284. Action = snaMoveAroundTarget
  285. end>
  286. Left = 294
  287. Top = 112
  288. end
  289. end