fDiffuseShaderD.dfm 10 KB

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