/
stud_22-365
/
GLXEngine
Обзор
Документация
Войти
/
stud_22-365
/
GLXEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/Demos/materials/multimaterial/fMultiMaterialC.dfm
90 строк
2 KB
GLScene
Refreshed multimaterial c++ demo
05 янв 2023, 13:13
05 янв 2023, 13:13
77ae014
Код
Авторство
О чём код?
object Form1: TForm1 Left = 0 Top = 0 Caption = 'MultiMaterial' ClientHeight = 532 ClientWidth = 734 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] Position = poScreenCenter OnCreate = FormCreate OnMouseWheel = FormMouseWheel TextHeight = 13 object GLSceneViewer1: TGLSceneViewer Left = 0 Top = 0 Width = 734 Height = 532 Camera = GLCamera1 Buffer.BackgroundColor = clTeal FieldOfView = 158.708679199218800000 PenAsTouch = False Align = alClient OnMouseDown = GLSceneViewer1MouseDown OnMouseMove = GLSceneViewer1MouseMove TabOrder = 0 ExplicitWidth = 527 ExplicitHeight = 411 end object GLScene1: TGLScene Left = 24 Top = 8 object GLDummyCube1: TGLDummyCube CubeSize = 1.000000000000000000 object GLCamera1: TGLCamera DepthOfView = 100.000000000000000000 FocalLength = 50.000000000000000000 SceneScale = 2.000000000000000000 TargetObject = GLDummyCube1 Position.Coordinates = {0000803F000040400000A0C00000803F} object GLLightSource1: TGLLightSource ConstAttenuation = 1.000000000000000000 SpotCutOff = 180.000000000000000000 end end end object GLCube1: TGLCube Material.MaterialLibrary = GLMatLib1 Material.LibMaterialName = 'MultipassMat' CubeSize = {000000400000004000000040} end end object GLMatLib1: TGLMaterialLibrary Materials = < item Name = 'MultipassMat' Tag = 0 Shader = GLMultiMaterialShader1 end> Left = 120 Top = 8 end object GLMatLib2: TGLMaterialLibrary Left = 120 Top = 64 end object GLMultiMaterialShader1: TGLMultiMaterialShader MaterialLibrary = GLMatLib2 VisibleAtDesignTime = False ShaderStyle = ssReplace Left = 240 Top = 64 end object GLCadencer1: TGLCadencer Scene = GLScene1 OnProgress = GLCadencer1Progress Left = 24 Top = 64 end object GLTexCombineShader1: TGLTexCombineShader Combiners.Strings = ( 'Tex0:=PrimaryColor dot3 Tex0;') DesignTimeEnabled = False Left = 240 Top = 8 end end