Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



24 Commits

Repository files navigation


This document is a description of my/Antoine Webanck's submission to the Shadertoy contest of the JFIG2021. The shader is entitled GrasseJasmin and can be found at URL:

Global description

A flask of perfume on a table top, accompanied by a jasmin flower tip. The flask is labelled as this edition of the JFIG.

Original submission version preview Revised version preview
original preview revised preview


Edition 2021 of the JFIG takes place on the campus of Sophia Antipolis. Sophia is located in the region Provence-Alpes-Côte d'Azur which also contains the town of Grasse. Grasse is a town well known for its production of perfume, and notably the culture of Jasmin. The particular species cultivated in Grasse is the Jasminum grandiflorum.

A flask of perfume is a noble manufactured object, a symbol of luxury often crystalized by its design. The common blend of glass, gold, and the liquid in a geometric or complex shape allows for mesmerizing and fascinating interplays with light. Even the simple shape of the flask of the shader creates interesting reflection and refraction patterns through glass interface.

A flower is a complex and fragile reroduction organ produced by plants to attract pollinating insects thanks to its perfume, shape and colors. Flowers are beautiful complex, organic and intricate shapes and colors. As such, a flower is a challenging object to model and even more to animate.

Technical details

The objects of the scene are modeled with distance functions to primitives, boolean operators and a little bit of domain warping. The scene is rendered by path tracing and ray-object intersections are computed by ray-marching the global distance function. At each intersection, the normal is computed as the gradient of the distance function.

In bulk:

  • diffuse surfaces, glass refraction/reflection,
  • the JFIG label is adapted from the bitfield from the previous year:,
  • buffered rendering for incremental rendering,
  • multiple Importance Sampling (MIS) between diffuse BSDF and solar disk illumination,
  • double sided BSDF for the flower to let the light pass through.


Thanks to:


No description, website, or topics provided.






No releases published