{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/2937","labels_url":"https://api.github.com/repos/minetest/minetest/issues/2937/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/2937/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/2937/events","html_url":"https://github.com/minetest/minetest/issues/2937","id":95999819,"number":2937,"title":"Allow to define shaders, just like textures, for nodes and maybe even globally.","user":{"login":"RobertZenz","id":611377,"avatar_url":"https://avatars.githubusercontent.com/u/611377?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertZenz","html_url":"https://github.com/RobertZenz","followers_url":"https://api.github.com/users/RobertZenz/followers","following_url":"https://api.github.com/users/RobertZenz/following{/other_user}","gists_url":"https://api.github.com/users/RobertZenz/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertZenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertZenz/subscriptions","organizations_url":"https://api.github.com/users/RobertZenz/orgs","repos_url":"https://api.github.com/users/RobertZenz/repos","events_url":"https://api.github.com/users/RobertZenz/events{/privacy}","received_events_url":"https://api.github.com/users/RobertZenz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/minetest/minetest/labels/feature%20request","name":"feature request","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-20T06:55:23Z","updated_at":"2015-07-23T20:00:36Z","closed_at":null,"body":"Currently we can \"only\" change the appearance of a node by setting a mesh, nodebox, texture and if it should be waving or not. A very interesting idea to explore would be to allow to register shaders on nodes just like textures.\r\n\r\nObviously, the main benefit would be to allow modders to create, define and use their own shaders. Which grants a lot more freedom when it comes to using the engine. A bonus would be if we would also be able to register shaders for the whole scene.\r\n\r\nA main usecase would be to change the appearance of water or lava, or allow other different looking liquids. Or a shader for the skybox would also be interesting.\r\n\r\nI'm unaware of the current implementation within the engine in how shaders are used, so I do not know how much work this would require or if this would be at all possible with the current implementation."},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/124224479","html_url":"https://github.com/minetest/minetest/issues/2937#issuecomment-124224479","issue_url":"https://api.github.com/repos/minetest/minetest/issues/2937","id":124224479,"user":{"login":"RealBadAngel","id":2177790,"avatar_url":"https://avatars.githubusercontent.com/u/2177790?v=3","gravatar_id":"","url":"https://api.github.com/users/RealBadAngel","html_url":"https://github.com/RealBadAngel","followers_url":"https://api.github.com/users/RealBadAngel/followers","following_url":"https://api.github.com/users/RealBadAngel/following{/other_user}","gists_url":"https://api.github.com/users/RealBadAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/RealBadAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealBadAngel/subscriptions","organizations_url":"https://api.github.com/users/RealBadAngel/orgs","repos_url":"https://api.github.com/users/RealBadAngel/repos","events_url":"https://api.github.com/users/RealBadAngel/events{/privacy}","received_events_url":"https://api.github.com/users/RealBadAngel/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T20:00:36Z","updated_at":"2015-07-23T20:00:36Z","body":"@PilzAdam thats possible. shaders are compiled runtime (on startup). i can insert there a piece supplied by modder the same way im doing it already with headers and whole shaders body\r\nsome set of rules should be made ofc, but technically, yes i can do that"}}