Skip to content

Commit

Permalink
added stamp brush type and new brushes
Browse files Browse the repository at this point in the history
  • Loading branch information
feiss committed Sep 8, 2016
1 parent 853ca93 commit ab41559
Show file tree
Hide file tree
Showing 48 changed files with 458 additions and 54 deletions.
Binary file modified brushes/bristles0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed brushes/fur0.png
Binary file not shown.
Binary file removed brushes/fur1.png
Binary file not shown.
Binary file removed brushes/grunge0.png
Binary file not shown.
Binary file added brushes/line_gradient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/line_grunge1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/line_grunge2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/line_grunge3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/lines1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/lines2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/lines3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/lines4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/lines5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed brushes/roundflat.png
Binary file not shown.
Binary file removed brushes/roundsoft.png
Binary file not shown.
Binary file added brushes/silky_flat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/silky_textured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed brushes/smoke0.png
Binary file not shown.
Binary file added brushes/squared_textured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/stamp_bush1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/stamp_column1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/stamp_dots.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/stamp_fur1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/stamp_fur2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/stamp_gear1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brushes/stamp_grass1.png
Binary file added brushes/stamp_grunge1.png
Binary file added brushes/stamp_grunge2.png
Binary file added brushes/stamp_grunge3.png
Binary file added brushes/stamp_grunge4.png
Binary file added brushes/stamp_grunge5.png
Binary file added brushes/stamp_leaf1.png
Binary file added brushes/stamp_leaf2.png
Binary file added brushes/stamp_leaf3.png
Binary file added brushes/stamp_rain1.png
Binary file added brushes/stamp_snow1.png
Binary file added brushes/stamp_squares.png
Binary file added brushes/stamp_star1.png
Binary file removed brushes/stroke1.png
Diff not rendered.
Binary file removed brushes/thumb_fur0.png
Diff not rendered.
Binary file removed brushes/thumb_fur1.png
Diff not rendered.
Binary file removed brushes/thumb_grunge0.png
Diff not rendered.
Binary file removed brushes/thumb_roundflat.png
Diff not rendered.
Binary file removed brushes/thumb_roundsoft.png
Diff not rendered.
Binary file removed brushes/thumb_smoke0.png
Diff not rendered.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<script src="src/components/ui.js"></script>
<!-- brushes -->
<script src="src/brushes/line.js"></script>
<script src="src/brushes/stamp.js"></script>
<script src="src/brushes/spheres.js"></script>
<script src="src/brushes/cubes.js"></script>
<!-- css -->
Expand Down
148 changes: 94 additions & 54 deletions src/brushes/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ var line = {
if (type === 'shaded') {
defaultOptions = {
color: this.data.color,
roughness: 0.5,
metalness: 0.5,
roughness: 0.75,
metalness: 0.25,
side: THREE.DoubleSide,
};
}
Expand Down Expand Up @@ -178,77 +178,117 @@ var line = {
};

var lines = [
{
name: 'flat',
{
name: 'flat',
materialOptions: {
type: 'flat'
},
thumbnail: ''
},
thumbnail: ''
},
{
name: 'shaded',
{
name: 'smooth',
materialOptions: {
type: 'shaded'
},
thumbnail: ''
type: 'smooth'
},
thumbnail: ''
},
{
name: 'bristles',
{
name: 'squared-textured',
materialOptions: {
type: 'shaded',
textureSrc: 'brushes/bristles0.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
type: 'textured',
textureSrc: 'brushes/squared_textured.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'line-gradient',
materialOptions: {
type: 'textured',
textureSrc: 'brushes/line_gradient.png'
},
thumbnail: 'brushes/line_gradient.png'
},
{
name: 'silky-flat',
materialOptions: {
type: 'textured',
textureSrc: 'brushes/silky_flat.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'silky-textured',
materialOptions: {
type: 'textured',
textureSrc: 'brushes/silky_textured.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'lines1',
materialOptions: {
type: 'textured',
textureSrc: 'brushes/lines1.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'fur',
{
name: 'lines2',
materialOptions: {
type: 'shaded',
textureSrc: 'brushes/fur0.png'
},
thumbnail: 'brushes/thumb_fur0.png'
type: 'textured',
textureSrc: 'brushes/lines2.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'fur 2',
{
name: 'lines3',
materialOptions: {
type: 'shaded',
textureSrc: 'brushes/fur1.png'
},
thumbnail: 'brushes/thumb_fur1.png'
type: 'textured',
textureSrc: 'brushes/lines3.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'grunge',
{
name: 'lines4',
materialOptions: {
type: 'shaded',
textureSrc: 'brushes/grunge0.png'
},
thumbnail: 'brushes/thumb_grunge0.png'
type: 'textured',
textureSrc: 'brushes/lines4.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'roundflat',
{
name: 'lines5',
materialOptions: {
type: 'shaded',
textureSrc: 'brushes/roundflat.png'
},
thumbnail: 'brushes/thumb_roundflat.png'
type: 'textured',
textureSrc: 'brushes/lines5.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'roundsoft',
{
name: 'line-grunge1',
materialOptions: {
type: 'shaded',
textureSrc: 'brushes/roundsoft.png'
},
thumbnail: 'brushes/thumb_roundsoft.png'
type: 'textured',
textureSrc: 'brushes/line_grunge1.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
{
name: 'smoke',
{
name: 'line-grunge2',
materialOptions: {
type: 'textured',
textureSrc: 'brushes/smoke0.png'
},
thumbnail: 'brushes/thumb_smoke0.png'
type: 'textured',
textureSrc: 'brushes/line_grunge2.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
},
]
{
name: 'line-grunge3',
materialOptions: {
type: 'textured',
textureSrc: 'brushes/line_grunge3.png'
},
thumbnail: 'brushes/thumb_bristles0.png'
}
];

for (var i = 0; i < lines.length; i++) {
var definition = lines[i];
Expand Down
Loading

0 comments on commit ab41559

Please sign in to comment.