Unit1.dfm 2.4 KB

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