{"id":2662,"date":"2013-09-10T03:25:27","date_gmt":"2013-09-10T03:25:27","guid":{"rendered":"http:\/\/www.terrymatthes.com\/?p=2662"},"modified":"2024-03-06T20:10:29","modified_gmt":"2024-03-06T20:10:29","slug":"my-first-cgfx-shader","status":"publish","type":"post","link":"https:\/\/terrymatthes.com\/2024\/2013\/09\/10\/my-first-cgfx-shader\/","title":{"rendered":"My First CGFX Shader"},"content":{"rendered":"<p>I&#8217;ve put if off for a while, but today I decided to jump into writing shaders. It took a while and a lot of wikipedia searches, but I finished tonight after having started this morning.<\/p>\n<p>It&#8217;s a Phong shader based on a Lambert model. It has an added Fresnel highlight as well as controls for the glossiness strength and size. For textures it accepts Diffuse, Normal and Specular.<\/p>\n<p>The next part I&#8217;d like to add is reflections and more specifically; cubemap reflections. I&#8217;m moving to Montreal soon and I think my best chance for work is to apply as a material artist.<\/p>\n<p>I&#8217;m hoping my film work combined with my portfolio website and a new library of free to download materials will help me land a job. The maps it&#8217;s using right now are from an old ZBrush project, but they are good enough for proof of concept. More to come soon \ud83d\ude42<\/p>\n<p><a  href=\"http:\/\/www.terrymatthes.com\/wp-content\/uploads\/2013\/09\/test_shader2.jpg\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" data-imagelightbox=\"0\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-large wp-image-2668\" alt=\"My First cgfx Shader\" src=\"https:\/\/terrymatthes.com\/2024\/wp-content\/uploads\/2013\/09\/test_shader2.jpg\" width=\"500\" height=\"281\" srcset=\"https:\/\/terrymatthes.com\/2024\/wp-content\/uploads\/2013\/09\/test_shader2.jpg 1280w, https:\/\/terrymatthes.com\/2024\/wp-content\/uploads\/2013\/09\/test_shader2-300x169.jpg 300w, https:\/\/terrymatthes.com\/2024\/wp-content\/uploads\/2013\/09\/test_shader2-1024x576.jpg 1024w, https:\/\/terrymatthes.com\/2024\/wp-content\/uploads\/2013\/09\/test_shader2-768x432.jpg 768w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve put if off for a while, but today I decided to jump into writing shaders. It took a while and a lot of wikipedia searches, but I finished tonight after having started this morning. It&#8217;s a Phong shader based on a Lambert model. It has an added Fresnel highlight as well as controls for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2668,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","om_disable_all_campaigns":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[341,8,9],"tags":[47,72,113,158,178,183,212,245],"class_list":["post-2662","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-scripting","category-techart","tag-cgfx","tag-custom","tag-fresnel","tag-lambert","tag-materials","tag-maya","tag-phong","tag-shader"],"acf":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/terrymatthes.com\/2024\/wp-content\/uploads\/2013\/09\/test_shader2.jpg","_links":{"self":[{"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/posts\/2662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/comments?post=2662"}],"version-history":[{"count":1,"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/posts\/2662\/revisions"}],"predecessor-version":[{"id":3643,"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/posts\/2662\/revisions\/3643"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/media\/2668"}],"wp:attachment":[{"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/media?parent=2662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/categories?post=2662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/terrymatthes.com\/2024\/wp-json\/wp\/v2\/tags?post=2662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}