diff --git a/content/Resources/god-rays/god-rays-2-preview.png b/content/Resources/god-rays/god-rays-2-preview.png new file mode 100644 index 000000000..a9d365f4f Binary files /dev/null and b/content/Resources/god-rays/god-rays-2-preview.png differ diff --git a/content/blogs/graphics/god-rays-01.md b/content/blogs/graphics/god-rays-01.md index 7ba7d57f5..96800574b 100644 --- a/content/blogs/graphics/god-rays-01.md +++ b/content/blogs/graphics/god-rays-01.md @@ -4,7 +4,7 @@ title: God Rays - Part 1 tags: - graphics created: 2024-06-12 -date: 2024-06-13 +publishDate: 2024-06-13 aliases: - God Rays description: In this post we go over what are god rays and a couple different high-level approaches to them. @@ -60,7 +60,6 @@ The occlusion map is an image that tells us which pixels are being **directly li > Default Scene [(Source)](https://raw.githubusercontent.com/math-araujo/screen-space-godrays/master/docs/images/first_pass.png) This is just the scene rendered normally. When rendering the scene as normal something called a [[shadow-map|Shadow Map]] is generated which is another image that just tells us what part of our scene is in shadow and what is illuminated. This will come in handy later when we want to composite our final image. - > [!important] > It's important to note the distinction between the purpose of the shadow and occlusion map. The shadow map tells us **where shadows are** while the occlusion map tells us **what is blocking the light sources**. diff --git a/content/blogs/graphics/god-rays-02.md b/content/blogs/graphics/god-rays-02.md index 4563b3ebc..e3bca5442 100644 --- a/content/blogs/graphics/god-rays-02.md +++ b/content/blogs/graphics/god-rays-02.md @@ -4,10 +4,10 @@ title: God Rays - Part 2 tags: - graphics created: 2024-06-14 -date: 2024-06-14 +publishDate: 2024-06-16 aliases: description: In this post I document my progress as I attempt my own implementation of god rays. -previewImg: ./Resources/crepuscular_rays_fake.png +previewImg: ./Resources/god-rays/god-rays-2-preview.png --- > [!warning] Disclaimer diff --git a/content/index.md b/content/index.md index 8cf9df548..6098b2229 100644 --- a/content/index.md +++ b/content/index.md @@ -17,8 +17,4 @@ So come join me in here in this blog where I will be attempting to document my p ## Dev Log No blog posts yet. -## Graphics Blog -> [!gridfloatleft] [[god-rays-01|God Rays]] -> **Date**: *06/12/204* -> ![[crepuscular_rays_fake.png]] diff --git a/quartz/components/Footer.tsx b/quartz/components/Footer.tsx index f1cd160b3..3b959d9de 100644 --- a/quartz/components/Footer.tsx +++ b/quartz/components/Footer.tsx @@ -13,6 +13,7 @@ export default ((opts?: Options) => { const links = opts?.links ?? [] return ( + ) } diff --git a/quartz/components/GraphicsBlogs.tsx b/quartz/components/GraphicsBlogs.tsx new file mode 100644 index 000000000..3d40b1b74 --- /dev/null +++ b/quartz/components/GraphicsBlogs.tsx @@ -0,0 +1,79 @@ +import style from "./styles/recentblog.scss" + +// @ts-ignore: typescript doesn't know about our inline bundling system +// so we need to silence the error +import script from "./scripts/graphicsblog.inline" + +import { i18n } from "../i18n" +import { FullSlug, resolveRelative } from "../util/path" +import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" +import { Data } from "vfile" + +export default (() => { + + const GraphicsBlogs: QuartzComponent = ({ + allFiles, + fileData, + cfg + }: QuartzComponentProps) => { + + const pages = allFiles.filter(curr => { + const isValid = (p: Data) => { + return p.filePath?.startsWith("content/blogs/graphics/") && !p.frontmatter?.draft + } + return isValid(curr) + }) + + const parseDate = (date: Date) => { + return date.toLocaleDateString('en-US') //`${date.getFullYear()}/${date.getMonth()}/${date.getDay()}` + } + + return ( +
{page.description}
+