Пример #1
0
        public GlossDrawer(GUIContent Label, SerializedProperty PropertyGroup, ProjectionEditor Editor)
        {
            preview = new GreyScaleTexturePreview();

            label  = Label;
            editor = Editor;

            texture    = PropertyGroup.FindPropertyRelative("texture");
            glossiness = PropertyGroup.FindPropertyRelative("glossiness");
        }
Пример #2
0
        public SpecularDrawer(GUIContent Label, SerializedProperty PropertyGroup, ProjectionEditor Editor)
        {
            gloss    = new GreyScaleTexturePreview();
            specular = new ColorTexturePreview();

            editor = Editor;
            label  = Label;

            texture    = PropertyGroup.FindPropertyRelative("texture");
            color      = PropertyGroup.FindPropertyRelative("color");
            glossiness = PropertyGroup.FindPropertyRelative("glossiness");
        }
Пример #3
0
        public MetallicDrawer(GUIContent Label, SerializedProperty PropertyGroup, ProjectionEditor Editor)
        {
            gloss    = new GreyScaleTexturePreview();
            metallic = new GreyScaleTexturePreview();

            editor = Editor;
            label  = Label;

            texture     = PropertyGroup.FindPropertyRelative("texture");
            metallicity = PropertyGroup.FindPropertyRelative("metallicity");
            glossiness  = PropertyGroup.FindPropertyRelative("glossiness");
        }