{"action":"created","issue":{"url":"https://api.github.com/repos/zadvorsky/three.bas/issues/15","repository_url":"https://api.github.com/repos/zadvorsky/three.bas","labels_url":"https://api.github.com/repos/zadvorsky/three.bas/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/zadvorsky/three.bas/issues/15/comments","events_url":"https://api.github.com/repos/zadvorsky/three.bas/issues/15/events","html_url":"https://github.com/zadvorsky/three.bas/issues/15","id":276622877,"node_id":"MDU6SXNzdWUyNzY2MjI4Nzc=","number":15,"title":"fragmentMap vUv is always == 0.0?","user":{"login":"supermoos","id":2298345,"node_id":"MDQ6VXNlcjIyOTgzNDU=","avatar_url":"https://avatars2.githubusercontent.com/u/2298345?v=4","gravatar_id":"","url":"https://api.github.com/users/supermoos","html_url":"https://github.com/supermoos","followers_url":"https://api.github.com/users/supermoos/followers","following_url":"https://api.github.com/users/supermoos/following{/other_user}","gists_url":"https://api.github.com/users/supermoos/gists{/gist_id}","starred_url":"https://api.github.com/users/supermoos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supermoos/subscriptions","organizations_url":"https://api.github.com/users/supermoos/orgs","repos_url":"https://api.github.com/users/supermoos/repos","events_url":"https://api.github.com/users/supermoos/events{/privacy}","received_events_url":"https://api.github.com/users/supermoos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-24T13:52:20Z","updated_at":"2018-09-04T14:56:22Z","closed_at":"2018-09-04T14:56:22Z","author_association":"CONTRIBUTOR","body":"I've run into a weird / and hard to debug issue with BasicAnimationMaterial and options.fragmentMap where the vUv is always a = vec2(0.0, 0.0).\r\n\r\nHere's some pseudo code of the setup abstracted from my general code:\r\n```\r\nvar options = {uniformValues: {}}\r\noptions.uniformValues.map = new THREE.TextureLoader().load('assets/textures/uv_grid.jpg');\r\n\r\noptions.fragmentMap = [\r\n\t'if (vUv.x == 0.0) {',\r\n\t'diffuseColor = vec4(1.0, 0.0, 0.0, 1.0);',\r\n\t'} else {',\r\n\t'vec4 texelColor1 = texture2D(map, vUv);',\r\n\t'diffuseColor *= texelColor1;',\r\n'}'\r\n];\r\n```\r\nmy geometry is instanced like this:\r\n\r\n```\r\nlet planeTest = new THREE.PlaneGeometry(0.5, 0.5, 1.0, 1.0);\r\n\t\tlet geometry = new BAS.PrefabBufferGeometry(planeTest, 6);\r\n\t\tgeometry.computeVertexNormals();\r\n\t\tgeometry.bufferUvs();\r\nlet material = new BAS.BasicAnimationMaterial(materialOptions);\r\n```\r\n\r\nI've confirmed that vUv never changes from 0.0, 0.0 because i see 6 completely red planes rendered.\r\n\r\nAny idea / suggestions of how to debug this?"},"comment":{"url":"https://api.github.com/repos/zadvorsky/three.bas/issues/comments/418398947","html_url":"https://github.com/zadvorsky/three.bas/issues/15#issuecomment-418398947","issue_url":"https://api.github.com/repos/zadvorsky/three.bas/issues/15","id":418398947,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODM5ODk0Nw==","user":{"login":"zadvorsky","id":1788990,"node_id":"MDQ6VXNlcjE3ODg5OTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1788990?v=4","gravatar_id":"","url":"https://api.github.com/users/zadvorsky","html_url":"https://github.com/zadvorsky","followers_url":"https://api.github.com/users/zadvorsky/followers","following_url":"https://api.github.com/users/zadvorsky/following{/other_user}","gists_url":"https://api.github.com/users/zadvorsky/gists{/gist_id}","starred_url":"https://api.github.com/users/zadvorsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zadvorsky/subscriptions","organizations_url":"https://api.github.com/users/zadvorsky/orgs","repos_url":"https://api.github.com/users/zadvorsky/repos","events_url":"https://api.github.com/users/zadvorsky/events{/privacy}","received_events_url":"https://api.github.com/users/zadvorsky/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T14:56:22Z","updated_at":"2018-09-04T14:56:22Z","author_association":"OWNER","body":"Going to close this to clean up the old open issues."}}
{"actor":{"display_login":"zadvorsky"}}