fdLiningShader.dfm 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. object FormLiningShader: TFormLiningShader
  2. Left = 206
  3. Top = 117
  4. Margins.Left = 2
  5. Margins.Top = 2
  6. Margins.Right = 2
  7. Margins.Bottom = 2
  8. Caption = 'Lining Shaders'
  9. ClientHeight = 357
  10. ClientWidth = 554
  11. Color = clBtnFace
  12. Font.Charset = DEFAULT_CHARSET
  13. Font.Color = clWindowText
  14. Font.Height = -11
  15. Font.Name = 'MS Sans Serif'
  16. Font.Style = []
  17. Position = poScreenCenter
  18. TextHeight = 13
  19. object GLSceneViewer1: TGLSceneViewer
  20. Left = 0
  21. Top = 0
  22. Width = 399
  23. Height = 357
  24. Camera = Camera
  25. Buffer.AntiAliasing = aa4xHQ
  26. FieldOfView = 148.703598022460900000
  27. PenAsTouch = False
  28. Align = alClient
  29. OnMouseDown = GLSceneViewer1MouseDown
  30. OnMouseMove = GLSceneViewer1MouseMove
  31. TabOrder = 0
  32. ExplicitWidth = 382
  33. ExplicitHeight = 310
  34. end
  35. object Panel1: TPanel
  36. Left = 399
  37. Top = 0
  38. Width = 155
  39. Height = 357
  40. Align = alRight
  41. BevelOuter = bvSpace
  42. Font.Charset = ANSI_CHARSET
  43. Font.Color = clWindowText
  44. Font.Height = -11
  45. Font.Name = 'Tahoma'
  46. Font.Style = []
  47. ParentFont = False
  48. TabOrder = 1
  49. ExplicitLeft = 374
  50. ExplicitHeight = 284
  51. object Label1: TLabel
  52. Left = 17
  53. Top = 226
  54. Width = 50
  55. Height = 13
  56. Caption = 'Drag with:'
  57. end
  58. object Label2: TLabel
  59. Left = 17
  60. Top = 242
  61. Width = 123
  62. Height = 13
  63. Caption = 'LMB - move around scene'
  64. end
  65. object Label3: TLabel
  66. Left = 17
  67. Top = 258
  68. Width = 89
  69. Height = 13
  70. Caption = 'RMB - rotate torus'
  71. end
  72. object Bevel1: TBevel
  73. Left = 11
  74. Top = 218
  75. Width = 131
  76. Height = 9
  77. Shape = bsTopLine
  78. end
  79. object CheckBox1: TCheckBox
  80. Left = 6
  81. Top = 186
  82. Width = 131
  83. Height = 17
  84. Caption = 'Outline Shader Enabled'
  85. Checked = True
  86. State = cbChecked
  87. TabOrder = 0
  88. OnClick = CheckBox1Click
  89. end
  90. object GroupBox1: TGroupBox
  91. Left = 9
  92. Top = 58
  93. Width = 137
  94. Height = 111
  95. Caption = 'Shader on Torus'
  96. Font.Charset = ANSI_CHARSET
  97. Font.Color = clWindowText
  98. Font.Height = -11
  99. Font.Name = 'Tahoma'
  100. Font.Style = []
  101. ParentFont = False
  102. TabOrder = 1
  103. object Bevel2: TBevel
  104. Left = 8
  105. Top = 52
  106. Width = 117
  107. Height = 9
  108. Shape = bsTopLine
  109. end
  110. object CheckBox2: TCheckBox
  111. Left = 10
  112. Top = 16
  113. Width = 97
  114. Height = 17
  115. Caption = 'Enabled'
  116. Checked = True
  117. State = cbChecked
  118. TabOrder = 0
  119. OnClick = CheckBox2Click
  120. end
  121. object CheckBox3: TCheckBox
  122. Left = 10
  123. Top = 56
  124. Width = 97
  125. Height = 17
  126. Caption = 'Solid'
  127. TabOrder = 1
  128. OnClick = CheckBox3Click
  129. end
  130. object CheckBox4: TCheckBox
  131. Left = 10
  132. Top = 32
  133. Width = 113
  134. Height = 17
  135. Caption = 'Dotted Hidden Line'
  136. Checked = True
  137. State = cbChecked
  138. TabOrder = 2
  139. OnClick = CheckBox4Click
  140. end
  141. object CheckBox5: TCheckBox
  142. Left = 26
  143. Top = 72
  144. Width = 79
  145. Height = 17
  146. Caption = 'Surface Lit'
  147. TabOrder = 3
  148. OnClick = CheckBox5Click
  149. end
  150. object CheckBox6: TCheckBox
  151. Left = 26
  152. Top = 88
  153. Width = 63
  154. Height = 17
  155. Caption = 'Flat'
  156. TabOrder = 4
  157. OnClick = CheckBox6Click
  158. end
  159. end
  160. object Panel2: TPanel
  161. Left = 1
  162. Top = 1
  163. Width = 153
  164. Height = 43
  165. Align = alTop
  166. BevelOuter = bvNone
  167. Caption = 'Lining Shaders'
  168. Color = clBtnHighlight
  169. Font.Charset = ANSI_CHARSET
  170. Font.Color = clWindowText
  171. Font.Height = -19
  172. Font.Name = 'Trebuchet MS'
  173. Font.Style = [fsBold]
  174. ParentFont = False
  175. TabOrder = 2
  176. end
  177. end
  178. object GLScene1: TGLScene
  179. ObjectsSorting = osRenderFarthestFirst
  180. Left = 22
  181. Top = 8
  182. object LightSource: TGLLightSource
  183. Ambient.Color = {0000803F0000803F0000803F0000803F}
  184. ConstAttenuation = 1.000000000000000000
  185. Position.Coordinates = {00002041000000410000E0400000803F}
  186. Specular.Color = {0000803F0000803F0000803F0000803F}
  187. SpotCutOff = 180.000000000000000000
  188. end
  189. object Torus: TGLTorus
  190. Material.MaterialLibrary = GLMaterialLibrary1
  191. Material.LibMaterialName = 'LibMaterial2'
  192. Direction.Coordinates = {000000000000803F0000000000000000}
  193. Up.Coordinates = {0000000000000000000080BF00000000}
  194. MajorRadius = 2.500000000000000000
  195. MinorRadius = 1.500000000000000000
  196. StopAngle = 360.000000000000000000
  197. Parts = [toSides, toStartDisk, toStopDisk]
  198. end
  199. object Sphere: TGLSphere
  200. ShowAxes = True
  201. Radius = 0.500000000000000000
  202. end
  203. object AnnulusOutlined: TGLAnnulus
  204. Material.MaterialLibrary = GLMaterialLibrary1
  205. Material.LibMaterialName = 'LibMaterial'
  206. Position.Coordinates = {0000E04000000000000000000000803F}
  207. Scale.Coordinates = {00000040000000400000004000000000}
  208. BottomRadius = 0.500000000000000000
  209. Height = 1.000000000000000000
  210. BottomInnerRadius = 0.300000011920929000
  211. TopInnerRadius = 0.300000011920929000
  212. TopRadius = 0.500000000000000000
  213. end
  214. object AnnulusPink: TGLAnnulus
  215. Material.MaterialLibrary = GLMaterialLibrary1
  216. Material.LibMaterialName = 'LibMaterial4'
  217. Position.Coordinates = {0000E0C000000000000000000000803F}
  218. Scale.Coordinates = {00000040000000400000004000000000}
  219. BottomRadius = 0.500000000000000000
  220. Height = 1.000000000000000000
  221. BottomInnerRadius = 0.300000011920929000
  222. TopInnerRadius = 0.300000011920929000
  223. TopRadius = 0.500000000000000000
  224. end
  225. object AnnulusDotted: TGLAnnulus
  226. Material.MaterialLibrary = GLMaterialLibrary1
  227. Material.LibMaterialName = 'LibMaterial1'
  228. Position.Coordinates = {00000000000000000000E0C00000803F}
  229. Scale.Coordinates = {00000040000000400000004000000000}
  230. BottomRadius = 0.500000000000000000
  231. Height = 1.000000000000000000
  232. BottomInnerRadius = 0.300000011920929000
  233. TopInnerRadius = 0.300000011920929000
  234. TopRadius = 0.500000000000000000
  235. end
  236. object CubeGreen: TGLCube
  237. Material.MaterialLibrary = GLMaterialLibrary1
  238. Material.LibMaterialName = 'LibMaterial5'
  239. Position.Coordinates = {00000000000000000000E0400000803F}
  240. Scale.Coordinates = {00000040000000400000004000000000}
  241. end
  242. object CubeTransparent: TGLCube
  243. Material.MaterialLibrary = GLMaterialLibrary1
  244. Material.LibMaterialName = 'LibMaterial3'
  245. Position.Coordinates = {0000000000008040000000000000803F}
  246. CubeSize = {000040400000404000004040}
  247. end
  248. object Camera: TGLCamera
  249. DepthOfView = 100.000000000000000000
  250. FocalLength = 50.000000000000000000
  251. TargetObject = Torus
  252. Position.Coordinates = {00006041000020410000C0400000803F}
  253. end
  254. end
  255. object GLMaterialLibrary1: TGLMaterialLibrary
  256. Materials = <
  257. item
  258. Name = 'LibMaterial'
  259. Tag = 0
  260. Material.FrontProperties.Ambient.Color = {9190903D9190903D8786863E0000803F}
  261. Material.FrontProperties.Diffuse.Color = {9796163F0000803F0000803F0000803F}
  262. Material.FrontProperties.Shininess = 128
  263. Shader = GLOutlineShader1
  264. end
  265. item
  266. Name = 'LibMaterial1'
  267. Tag = 0
  268. Shader = GLHiddenLineShader1
  269. end
  270. item
  271. Name = 'LibMaterial2'
  272. Tag = 0
  273. Material.FrontProperties.Ambient.Color = {C5C4443EBFBEBE3EB5B4343E0000803F}
  274. Material.FrontProperties.Diffuse.Color = {0000803FEBEAEA3E8180803C0000803F}
  275. Material.FrontProperties.Shininess = 128
  276. Material.FrontProperties.Specular.Color = {0000803F0000803F0000803F0000803F}
  277. Material.BlendingMode = bmTransparency
  278. Shader = GLHiddenLineShader2
  279. end
  280. item
  281. Name = 'LibMaterial3'
  282. Tag = 0
  283. Shader = GLHiddenLineShader3
  284. end
  285. item
  286. Name = 'LibMaterial4'
  287. Tag = 0
  288. Shader = GLHiddenLineShader4
  289. end
  290. item
  291. Name = 'LibMaterial5'
  292. Tag = 0
  293. Material.FrontProperties.Diffuse.Color = {9998183E9796163F9190103E17D92E3F}
  294. Material.BlendingMode = bmTransparency
  295. Shader = GLHiddenLineShader5
  296. end>
  297. Left = 22
  298. Top = 124
  299. end
  300. object GLOutlineShader1: TGLOutlineShader
  301. LineColor.Color = {0000803F00000000000000000000803F}
  302. LineSmooth = True
  303. LineWidth = 4.000000000000000000
  304. Left = 106
  305. Top = 380
  306. end
  307. object GLHiddenLineShader1: TGLHiddenLineShader
  308. FrontLine.Width = 1.000000000000000000
  309. FrontLine.Color.Color = {938C0C3E938C0C3E938E0E3F0000803F}
  310. FrontLine.Pattern = 10101
  311. BackLine.Width = 2.000000000000000000
  312. LineSmooth = True
  313. Solid = True
  314. Left = 446
  315. Top = 8
  316. end
  317. object GLHiddenLineShader2: TGLHiddenLineShader
  318. FrontLine.Width = 2.000000000000000000
  319. BackLine.Width = 1.000000000000000000
  320. BackLine.Color.Color = {000000000000003F000000000000803F}
  321. BackLine.Pattern = 65280
  322. LineSmooth = True
  323. SurfaceLit = False
  324. Left = 124
  325. Top = 65534
  326. end
  327. object GLHiddenLineShader3: TGLHiddenLineShader
  328. FrontLine.Width = 5.000000000000000000
  329. FrontLine.Color.Color = {EC51B83E0000803ECDCC4C3E9A99193F}
  330. BackLine.Width = 5.000000000000000000
  331. BackLine.Color.Color = {0000003F0000003F0000003F9A99993E}
  332. LineSmooth = True
  333. Left = 586
  334. Top = 16
  335. end
  336. object GLHiddenLineShader4: TGLHiddenLineShader
  337. FrontLine.Width = 2.000000000000000000
  338. FrontLine.Color.Color = {B81E053F14AEC73E14AEC73E0000803F}
  339. BackLine.Width = 1.000000000000000000
  340. BackLine.Color.Color = {E4DB5B3FEBE0E03E9A93133F0000803F}
  341. LineSmooth = True
  342. Left = 226
  343. Top = 8
  344. end
  345. object GLHiddenLineShader5: TGLHiddenLineShader
  346. FrontLine.Width = 2.000000000000000000
  347. FrontLine.Color.Color = {9A93133FE4DB5B3FEBE0E03E3333333F}
  348. BackLine.Width = 2.000000000000000000
  349. BackLine.Color.Color = {000000000000003F000000000000803F}
  350. BackLine.Pattern = 65280
  351. LineSmooth = True
  352. Solid = True
  353. BackgroundColor.Color = {938C0C3E938E0E3F938C0C3E3333333F}
  354. SurfaceLit = False
  355. Left = 310
  356. Top = 12
  357. end
  358. end