/** * File: BaseMolding.cga * Created: 4 Jan 2018 12:49:13 GMT * Author: nsorsen2 */ version "2017.0" import platform: "Platform.cga" @Range(0,1,2,3,4) attr FIRST_Type = 4 attr basemolding_platform_ratio = 0.82 // Textures side_texture = "assets/Texture/Bonampak_Red.jpg" top_texture = "assets/Texture/Bonampak_Red.jpg" ground_texture = "assets/Texture/green_01.jpg" dirt_texture = "assets/Texture/Sequoia_Bark_Diffuse.jpg" //Set scope for base molding, break into components BaseMolding--> case FIRST_Type == 3: s('basemolding_platform_ratio,'1,'basemolding_platform_ratio) center(xyz) comp(f){front:BaseMoldFront | side:BaseMoldSide | top:Floor} case FIRST_Type == 4: s('basemolding_platform_ratio,'1,'basemolding_platform_ratio) center(xyz) comp(f){front:BaseMoldFront | side:BaseMoldSide | top:Floor} else: Building //Texture base molding BaseMoldFront--> setupProjection(0, scope.xy, 0.1, 0.1) projectUV(0) texture(side_texture) BaseMoldSide--> setupProjection(0, scope.xy, 0.1, 0.1) projectUV(0) texture(side_texture) Floor--> setupProjection(0, scope.xz, 100, 100) projectUV(0) texture(top_texture)