Unit1.dfm 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Cg Cel Shading'
  5. ClientHeight = 337
  6. ClientWidth = 515
  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 = 515
  21. Height = 337
  22. Camera = GLCamera1
  23. FieldOfView = 146.944976806640600000
  24. Align = alClient
  25. OnMouseDown = GLSceneViewer1MouseDown
  26. OnMouseMove = GLSceneViewer1MouseMove
  27. TabOrder = 0
  28. end
  29. object GLScene1: TGLScene
  30. Left = 40
  31. Top = 16
  32. object GLDummyCube1: TGLDummyCube
  33. CubeSize = 1.000000000000000000
  34. object GLCamera1: TGLCamera
  35. DepthOfView = 100.000000000000000000
  36. FocalLength = 50.000000000000000000
  37. TargetObject = GLDummyCube1
  38. Position.Coordinates = {00000000000000400000A0400000803F}
  39. Direction.Coordinates = {00000000000000000000803F00000000}
  40. object GLLightSource1: TGLLightSource
  41. ConstAttenuation = 1.000000000000000000
  42. SpotCutOff = 180.000000000000000000
  43. end
  44. end
  45. end
  46. object GLActor1: TGLActor
  47. Material.MaterialLibrary = GLMaterialLibrary1
  48. Material.LibMaterialName = 'CgShaderMat'
  49. Direction.Coordinates = {000000000000803F2EBD3BB300000000}
  50. PitchAngle = 90.000000000000000000
  51. Up.Coordinates = {000000002EBD3BB3000080BF00000000}
  52. Interval = 100
  53. end
  54. end
  55. object CgCellShader: TCgShader
  56. VertexProgram.OnApply = CgCellShaderApplyVP
  57. FragmentProgram.OnApply = CgCellShaderApplyFP
  58. FragmentProgram.OnUnApply = CgCellShaderUnApplyFP
  59. OnApplyVP = CgCellShaderApplyVP
  60. OnApplyFP = CgCellShaderApplyFP
  61. OnUnApplyFP = CgCellShaderUnApplyFP
  62. OnInitialize = CgCellShaderInitialize
  63. Left = 120
  64. Top = 72
  65. end
  66. object GLMaterialLibrary1: TGLMaterialLibrary
  67. Materials = <
  68. item
  69. Name = 'CgShaderMat'
  70. Tag = 0
  71. Material.Texture.Disabled = False
  72. Shader = CgCellShader
  73. end>
  74. Left = 112
  75. Top = 16
  76. end
  77. object GLCadencer1: TGLCadencer
  78. Scene = GLScene1
  79. Left = 40
  80. Top = 72
  81. end
  82. object AsyncTimer1: TGLAsyncTimer
  83. Enabled = True
  84. OnTimer = AsyncTimer1Timer
  85. Left = 256
  86. Top = 16
  87. end
  88. end